An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified
How to configure SQL Server 2005 to allow remote connections
INTRODUCTION
When
you try to connect to an instance of Microsoft SQL Server 2005 from a
remote computer, you might receive an error message. This problem might
occur when you use any program to connect to SQL Server.
For example, you receive the following error message when you use the SQLCMD utility to connect to SQL Server:
This problem might occur when SQL Server 2005 is not configured to accept remote connections. By default, SQL Server 2005 Express Edition and SQL Server 2005 Developer Edition do not allow remote connections.
To configure SQL Server 2005 to allow remote connections, you must complete these steps:
For example, you receive the following error message when you use the SQLCMD utility to connect to SQL Server:
Sqlcmd:
Error: Microsoft SQL Native Client: An error has occurred while
establishing a connection to the server. When connecting to SQL Server
2005, this failure may be caused by the fact that under the default
settings SQL Server does not allow remote connections.
This problem might occur when SQL Server 2005 is not configured to accept remote connections. By default, SQL Server 2005 Express Edition and SQL Server 2005 Developer Edition do not allow remote connections.
To configure SQL Server 2005 to allow remote connections, you must complete these steps:
- Enable remote connections on the instance of SQL Server that you want to connect to from a remote computer.
- Turn on the SQL Server Browser service.
- Configure the firewall to allow network traffic that is related to SQL Server and to the SQL Server Browser service.
More information
To
enable remote connections on the instance of SQL Server 2005 and to
turn on the SQL Server Browser service, use the SQL Server 2005 Surface
Area Configuration tool. The Surface Area Configuration tool is
installed when you install SQL Server 2005.
Enable remote connections for SQL Server 2005 Express or SQL Server 2005 Developer Edition
Enable the SQL Server Browser service
Create exceptions in Windows Firewall
Comments
Post a Comment