Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can configure an instance of SQL Server to use either static or dynamic ports.  

The  The following documentation should also be reviewed:  Verifying the Configuration of SQL Server Ports and SQL Server Locks

...

  1. Start the Server Network Utility by doing one of the following:
    • Click Start > Programs > Microsoft SQL Server > Server Network Utility.
    • Click Start > Run. In the Open box, type svrnetcn.exe, and then click OK.
  2. In the SQL Server Network Utility dialog box, click the General tab.
  3. In the Instance(s) on this server list, select your instance of SQL Server

    Note
    titleNote
    If the TCP/IP protocol is disabled, enable it by clicking TCP/IP in the Disabled Protocols list box, and then clicking Enable.
  4. In the Enabled Protocols list box, click TCP/IP, then click Properties.

    If TCP/IP protocol is disabled, enable it by clicking TCP/IP in the Disabled Protocols list box, and then clicking Enable.

  5. Type 0 in the Default port box, and then click OK.
  6. Click OK twice.
  7. Restart the instance of SQL Server.
  8. View the SQL Server error logs to verify whether the instance of SQL Server is currently using the dynamic port.

    If you have a clustered instance of SQL Server, and you follow the specified steps on a cluster node, you may notice that the TCPDynamicPorts and TCPPort registry values on other cluster nodes retain the old values. When you move the SQL Server group to the corresponding cluster node, and then bring SQL Server online on the cluster node, the registry values on the cluster nodes will reflect the updated values.