SQL Server Remote Connection Issue
If you have recently installed SQL Server 2005/2008, for security purposes, external and remote access is not enabled by default. If you try to connect to a SQL Server database from an external machine you may see one of the following errors.
ISSUES/ERRORS
· SQL server does not allow remote connections
· SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified
· An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005/2008,this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.(provider:Named Pipes Provider,error:40-Could not open connection to SQL Server))
· Server does not exist or access denied
· A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
· Named Pipes Provider: Could not open a connection to SQL Server [53].
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..
Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
SQL Server 2005
Startà Programsà Microsoft SQL Server 2005à Configuration Toolsà SQL Server Surface Area Configuration.
Click on SQL Server Surface Area Configuration
Click on Surface Area configuration for Services and Connections
Choose Remote Connections from view by component
Choose Local and remote connectionsà Using both TCP/IP and named pipes
A alert message popup, Click Ok
Now you have to restart the service.
Procedure for Restarting SQL Server 2005
StartàProgramsàMicrosoft SQL Server 2005àSQL Server Management Studio
Connect to the server
Right click on connected SQL Server
Click Restart from the popup menu.
SQL Server 2008
Go to Runà type SSMS à press enter, connect to the local server. Right click the server à properties
Property window appears. Select Connections from Select a page.
Check the check box Allow Remote connections to this server under Remote server connections. Click Ok.
StartàprogramsàMicrosoft SQL Server 2008àConfiguration ToolsàSQL Server Configuration Manager
Select the server from the left tree view screen
Right click and enable the TCP/IP. Double click on TCP/IP click on IP Addresses. Set the TCP Port to 1433. Restart the SQL Server.
Comments
Post a Comment
Your comment or feedback help me to write more blogs. Please add your comments.