Problem: A Microsoft SQL instance cannot be access remotely through ODBC, Visual Studio, or SQL Server Management Studio connection.
Resolution: (applies to MSSQL 2005, 2008, and 2008 R2)
- The Windows firewall is usually the culprit in these scenarios. Open TCP port 1433 for the service itself, and 1434 if the customer needs to use the SQL Browser service. Read this article to learn how to Open an Inbound Custom Allow Rule in Windows Firewall.
- Open “cliconfg” (yes, it’s spelled like that) from a Run prompt and make sure TCP/IP is an enabled protocol.
- Check the Services tool (Start, Administrative Tools, Services) to see that the service named “SQL Server (MSSQLSERVER)” is started.
- Ensure that you are using the correct credentials to authenticate. The default SQL administrator account is named “sa” and if you built the server from one of our server images with MSSQL pre-installed, the password will be in a text file on the root of the C partition.
- Use “netstat –an” from the command prompt to see if the server is listening for SQL traffic on the correct ports.
- If not, use SQL Server Configuration Manager to change the ports.
If you are using named instances when installing SQL, giving you the ability to host multiple SQL versions or service types, you will have to specify the name of the SQL instance when connecting rather than just using the server’s name or IP. If you have created a named instance, you will need to access it by appending the name to the server’s name or IP, following a backslash (e.g. 22.214.171.124\SQLINSTANCENAME or SQLSERVERNAME\SQLINSTANCENAME).
- Start, All Programs, Microsoft SQL Server 2008 (or 2008 R2), Configuration Tools, SQL Server Configuration Manager
- Open the + next to SQL Server Network Configuration
- Right-click TCP/IP and select Properties
- Select the IP Addresses tab
- All TCP ports mentioned on all interfaces should be 1433, change to reflect the correct port number and restart the SQL services.
© 2011-2013 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License
See license specifics and DISCLAIMER