How to manually enable TCP/IP on Windows XP Service Pack 2 for SQL Server 2000
INTRODUCTIONThis article describes how to determine if SQL Server is using a static or a dynamic port, and how to manually enable TCP/IP on Microsoft Windows XP Service Pack 2 for Microsoft SQL Server 2000.
By default, Windows Firewall is enabled on computers that are running Windows XP Service Pack 2. Windows Firewall closes ports such as 445 that are used for file and printer sharing to prevent Internet computers from connecting to file and print shares on your computer or to other resources. When SQL Server is configured to listen for incoming client connections by using named pipes over a NetBIOS session, SQL Server communicates over TCP ports and these ports must be open. SQL Server clients that are trying to connect to SQL Server will be not be able to connect until SQL Server is set as an exception in Windows Firewall. To configure Windows Firewall in Windows XP Service Pack 2 to allow SQL Server 2000 to listen for TCP/IP traffic on a static port, use the steps that are listed in the "More Information" section. MORE INFORMATIONWarning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk. How to determine if you are using a static or a dynamic portIf you are not sure if you are using a dynamic port, follow these steps:
How to enable TCP/IP with dynamic portsIf you are using dynamic ports, you must create an exception for the SQL Server program in Windows Firewall.For more information about how to create an exception for the SQL Server program in Windows Firewall, click the following article number to view the article in the Microsoft Knowledge Base: 841251 (http://support.microsoft.com/kb/841251/)
How to enable SQL Server connectivity on Windows XP Service Pack 2
How to enable TCP/IP with a static portTo enable TCP/IP connectivity for SQL Server listening on a static port, you must first know the number of the port that SQL Server is using. To find the port, you can either use the Server Network Utility or use the Regkey method.Use the Server Network Utility to find the port that SQL Server is usingNote This method works for either a default instance or for a named instance.
Use the Regkey method with a default instance to find the port that SQL Server is usingWarning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.To determine what port SQL Server is using for a default instance by using the Regkey method, follow these steps:
Use the Regkey method with a named instance to find the port that SQL Server is usingWarning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.To determine what port SQL Server is using for a named instance, follow these steps:
How to configure Windows Firewall for TCPWhen you know what port SQL Server is using, you can follow these steps to configure Windows Firewall to enable SQL Server to listen on that port.
If you decide to disable the port, you can clear the check box next to your new service. How to configure Windows Firewall for User Datagram Protocol (UDP)SQL Server uses UDP Port 1434 for communication with applications such as Microsoft Visual Basic. If you are running an application that requires connectivity with SQL Server, you must enable port 1434 for SQL Server to listen on. To do this, follow these steps:
REFERENCESYou can also enable connectivity for SQL Server on Windows
XP Service Pack 2 by setting up an exception in Windows Firewall for SQL
Server. For more information about setting up an exception in Windows Firewall for SQL Server, click the following article number to view the article in the Microsoft Knowledge Base: 841251 (http://support.microsoft.com/kb/841251/)
How to enable SQL Server connectivity on Windows XP Service Pack 2
You can also use
a script to enable connectivity for SQL Server on
Windows XP Service Pack 2.For more information, click the following article number to view the article in the Microsoft Knowledge Base: 839980 (http://support.microsoft.com/kb/839980/)
How to use a script to programmatically open ports for SQL Server to use on systems that are running Windows XP Service Pack 2
For more information about dynamic and static port allocation, in
addition to steps to configure static or dynamic ports on SQL Server
2000, click the following article number to view the article in the Microsoft Knowledge Base:
823938 (http://support.microsoft.com/kb/823938/)
How to configure an instance of SQL Server to listen on a specific TCP port or a dynamic port
For more information about configuring SQL Server 2000 and Windows
XP Service Pack 2, click the following article number to view the article in the Microsoft Knowledge Base:
841249 (http://support.microsoft.com/kb/841249/)
How to configure Windows XP Service Pack 2 for use with SQL Server
APPLIES TO
| Article Translations
|

Back to the top
