Click here to Skip to main content
15,898,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
While working on SQL server management studio 2008, when I am trying to access the server I am getting the following error:

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) (Microsoft SQL Server, Error: 2)

Please suggest me a permanent and stable solution.

Thanks in advance.

Indrajeet Bhattacharya
Posted

1 solution

It might be surface area configuration error or sql service configuration issue. Have a look at this thread for potential reasons and resolutions: Resolving A network-related or instance-specific error occurred while establishing a connection to SQL Server[^]
If needed, See steps for setting up Surface area configuration here..

If this does not resolve your issue, have a look at these thread:
http://forums.asp.net/t/1334649.aspx[^]
SQL SERVER FIX ERROR (provider: Named Pipes [^]
Quite few possible reasons and resolutions are proposed here too.
 
Share this answer
 
Comments
Indrojeet_Bhattacharya 9-Oct-10 5:20am    
Dear Sandeep,
The question is on SQL Server 2008 and not 2005. Surface Area Configuration, I presume does not come with SQL 2008.
Sandeep Mewara 9-Oct-10 5:31am    
Have a look at these:
http://www.mssqltips.com/tip.asp?tip=1673
http://www.mssqltips.com/tip.asp?tip=1995

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900