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 had no problem with my sql server and management studio yesterday, but today it does not connect and show me this error:

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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)

The only change I had made is changing windows user password, and I connect to sql using windows authentication what shoul i do to fix it?

share|improve this question

First Check if your sql server agent is running. Then go to SQL Server configuraion manager->sql Network Configuration->protocols for [server name] then enable the Named Pipe if it is disabled

share|improve this answer

The SQL Server Error 40 “provider: Named Pipes Provider, error: 40 – Could not open a connection to SQL Server”on server” can be occur due to several reasons. Take a look on this KB article and follow the steps discussed in it

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.