Click here to Skip to main content
15,913,055 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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 corrected and that Sql Server is configured to allow remote connections.(Provider:named Pipes Provider,error:40-Could not open a connection to SQL Server)


PLz Help me..............
Posted
Comments
Richard MacCutchan 22-Aug-14 9:26am    
Well the message is telling you everything you need to know. Do those checks and make sure that your connection string is trying to connect to the right server.
PIEBALDconsult 22-Aug-14 9:30am    
If the server is on another box, the port may not be open.
Dilan Shaminda 22-Aug-14 9:32am    
post your connection string here
ZurdoDev 22-Aug-14 9:40am    
The issue is the code cannot connect to SQL. Usually, the connection string is wrong.
Ashi0891 22-Aug-14 9:51am    
Please paste your connection string. I have gone through this error sometimes.

This error message simply means it cannot find either the server or the database in the connection string. Please verify the access on server, server name, database name, etc.
 
Share this answer
 

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