SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How do I deal with this error?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

asher
Starting Member

Netherlands
36 Posts

Posted - 12/16/2012 :  18:05:05  Show Profile  Reply with Quote
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

USA
181 Posts

Posted - 12/17/2012 :  01:17:13  Show Profile  Visit prett's Homepage  Reply with Quote
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

Netherlands
36 Posts

Posted - 12/20/2012 :  10:38:42  Show Profile  Reply with Quote
Prett,

Thank you for your reply.

The link you have given me is impressive.

Asher.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000