Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How do I deal with this error?

Author  Topic 

asher
Starting Member

36 Posts

Posted - 2012-12-16 : 18:05:05
I got following error message with which I am unable to deal:

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)

*** In particular this part *** : that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Asher

prett
Posting Yak Master

212 Posts

Posted - 2012-12-17 : 01:17:13
You can fix this issue by following steps:

Step 1) First you should ensure that SQL SERVER is up and the instance that 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.

Ref: http://blog.sqlauthority.com/2007/04/23/sql-server-fix-error-40-could-not-open-a-connection-to-sql-server/

Hope the solution will help you to resolve this error!!
Go to Top of Page

asher
Starting Member

36 Posts

Posted - 2012-12-20 : 10:38:42
Prett,

Thank you for your reply.

The link you have given me is impressive.

Asher.
Go to Top of Page
   

- Advertisement -