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

How to resolve my quesiton ?

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)


Thanks,
Posted
Comments
sunandandutt 11-Sep-12 5:46am    
Check your Web config. Check the connectionstring of your project. There is invalid information regarding database.

Study this link to Resolve your Error.
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.
Happy Coding
:)
 
Share this answer
 
v3
Hi ,
Check this link http://www.connectionstrings.com/[^]


If you can't connect to your Database through management studio Then go sql server configuration manager and restart the service

Best Regards
M.Mitwalli
 
Share this answer
 
You connection string is incorrect.

Try connecting using these credentials (get them from you web.config file or IIS Manager) SQL Server Management Studio (if you are using SQL Server) or any console that comes which you database server. You will find that you won't be able to connect. You need to update to connection string and provide with correct credentials to resolve this.
 
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