Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
ADDITIONAL INFORMATION:

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: Shared Memory Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2

this msg is show when i connect the sql server 2005 so what i do??
Posted

You can:
1.) Verify that the instance name is correct
2.) Verify that SQL Server is configured to allow remote connections.
3.) Copy&paste the error message to google and find something like this:
http://social.technet.microsoft.com/wiki/contents/articles/2102.how-to-troubleshoot-connecting-to-the-sql-server-database-engine.aspx[^]

Regards
 
Share this answer
 
Did you check if the 1433 port is open in the firewall to allow connections ?If not there is no way that you'll be able to communicate to SQL server let alone find the instance.Also check if have enabled the SQL browser service started or not.
 
Share this answer
 
Comments
Ritu khatri 9-Jul-12 12:43pm    
I don't understand what u say so plz explain me what i do??
 
Share this answer
 
v2

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