Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai to all


In my project while running it the following error is occurs,the error like this,
(A network-related or instance-specific error occurred while establishing a connection to SQL Server.The Server was not found or not accessible,verify that the instance name is correct and the SQL server is configured to allow remote connections.(Provider: SQL Network interfaces,error:26, Error- Locating Server/Instance Specified)) .Please help me to overcome this error.

Tank You,
Rajeshkumar
Posted
Comments
thatraja 5-Aug-11 8:04am    
what happened? you unaccepted all answers. :doh:

Wow - today seems to be the day of 'we can't read error messages'. What makes you think this error message is wrong ? It's telling you that the SQL Server needs to be configured, or it doesn't exist. Why do you think this error is wrong ? How can we tell you what might be wrong with your connection string if you don't post it ?
 
Share this answer
 
Comments
thatraja 5-Aug-11 9:55am    
5!
The error is obvious. SQL Server was not found. Possible reasons are:

1. The SQL Server is not started in Services.
2. You had the wrong SQL Server name.
 
Share this answer
 
Comments
thatraja 5-Aug-11 9:55am    
5!
Your SQL Server Not Starting or Wrong Connection String Setting
 
Share this answer
 
Comments
thatraja 5-Aug-11 9:55am    
5!
There are many reasons, read this

SQL 2005 Express connection problem[^]
 
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