Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Sets the port number to be used to communicate with SQL Server.
public void setPortNumber(int portNumber)
portNumber
An int value that contains the port number.
The port number is the TCP/IP port number that is used when opening a socket connection to SQL Server. If the portNumber property is not set, the getPortNumber method returns the default value of 1433.
Note
The setPortNumber method does not do any range checking on the port value passed in. You can pass a port number that is not valid, like 99999, without triggering an error.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today