Search

Thursday, August 4, 2011

Error : 40 – could not open a connection to SQL server

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 default settings SQL server does not allow remote connection. ( provider: Named Pipes Provider, error: 40 – could not open a connection to SQL server. )

Fix/Workaround/Solution:
Step 1) Make sure SQL SERVER is up and the instance you try to connect is running.

Step 2) Your system Firewall should not block SQL Server port.

Step 3) Go to Computer Management >> Service and Application >> SQL Server 2005 Configuration >> Network Configuration


Enable TCP/IP protocol. Make sure that SQL SERVER port is by Default 1433.

Step 4) Now follow this KB Article of MSDN depending on your server :





No comments:

Post a Comment