To use dynamic ports
- Start the SQL Server Configuration Manager (Start > All Programs > Microsoft SQL Server > Configuration Tools > SQL Server Configuration Manager.
- Expand SQL Server Network Configuration and select Protocols for yourSQLServerInstance.
- Select TCP/IP (enable it if it is not currently enabled) and click on the IP Addresses tab.
-
Scroll to the bottom to IPAII and set the following
values for ports:
For the TCPIP Dynamic Ports, set the value to
0
.For the TCPIP Static Port, set the value to blank.
- Start the SQL Server Browser service (Start > All Programs > Microsoft SQL Server > Configuration Tools > SQL Server Configuration Manager and then select SQL Server Services and start the SQL Server Browser service.)
- Restart the SQL Server instance.
- Open the %LARUNDIR%\dataarea\db.cfg in a text editor.
-
Set the PORT parameter to
0
, or simply remove or comment out the PORT parameter. - Set the DBSERVER parameter to the name of the SQL Server instance.