A network-related or instance-specific error occurred while establishing a connection to SQL Server- A possible fix

Some times when working with sql server you may get following error.

TITLE: Connect to Server
------------------------------

Cannot connect to

------------------------------
ADDITIONAL INFORMATION:

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)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------


A possible fix this is given below.

Go to services and check SQL Server (MSSQLSERVER) service. It may be stopped. Start it and then try to connect again.

0 Response to "A network-related or instance-specific error occurred while establishing a connection to SQL Server- A possible fix"

Post a Comment