sql server port code example
Example 1: default sql server port
The default port of SQL server is 1433.
Example 2: sql server port number
By default SQL Server listens on TCP port number 1433, but for named instances the TCP port is dynamically configured. There are several options available to get the listening port for a SQL Server named instance.