Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am getting following error while connecting to my local Sql Express.

An error has occurred. Details of the exception:
A network-related or instance-specific error occurred while establishing a conne
ction 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 Serve
r/Instance Specified)

Unable to connect to SQL Server database.

I am able to connect to Sql Server using Management Studio.

share|improve this question

Are you trying to connect to SQL Server using Management Studio installed on the same computer as SQL Server, or are you trying to connect remotely? If you are trying to connect remotely, have you tried connecting locally?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.