Click here to Skip to main content
15,911,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,

I using local data base in visual studio 2008 but issue created when i click on my database it returns the error which given below

Exception Details: System.Data.SqlClient.SqlException: 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

how can i solve this?
Posted
Comments
[no name] 30-Jul-12 12:27pm    
Is SQL Server running? Can you connect to that instance of SQL Server? Is SQL Server configured to allow connections correctly?

You have a communication issue with your server. Here is a great posting that explains how to diagnose and fix it (and don't miss the tool near the end that helps in the diagnosis process):

http://blogs.msdn.com/b/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx[^]
 
Share this answer
 
First and foremost make sure that the SQL Server services are running. Other reasons could be, incorrect connection string or some Firewall blockage.

Here, have a look at this blog post to troubleshoot the issue : MSDN Blogs: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified[^]

If needed, look at these one:
Exception - error 26 - Error Locating Server Instance Specified[^]
provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance...[^]
"Specified SQL server not found" o..[^]
 
Share this answer
 
Comments
shinebudy 30-Jul-12 13:44pm    
i can not solve my problem is there any other solution?
Sandeep Mewara 30-Jul-12 14:08pm    
Difficult.
Sandeep Mewara 30-Jul-12 14:10pm    
Difficult!
Sandeep Mewara 30-Jul-12 14:10pm    
Difficult...

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