Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I Open My Sql Server Management
when suddenly I Get this error?

TITLE: Connect to Server


Cannot connect to BRIAN.


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%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476


The system cannot find the file specified


BUTTONS:

OK

Can You Help me out here?
Thanks In Advance!
Posted
Updated 27-Aug-14 19:49pm
v2

This Error can happen due to many reasons

Check the below link

http://www.sswug.org/articlesection/default.aspx?TargetID=44331[^]

Hope it will help you to resolve..
 
Share this answer
 
The error message is pretty explicit: it can't connect - and it provides you with a link to a list of things to start checking.

We can do no more: you need to start with your connection string and check it all the way through. We don't have access to the string, or the environment you are working in.
So follow the link, see what it says, and if you can't sort it out from that, try establishing a connection in VS via the Server Explorer pane - which will give you a working connection string when you get it right.
 
Share this answer
 
If BRIAN is a local SQL then check SQL Server Service is running or not.
If BRIAN is a Remote/Network SQL then check your Network connection and SQL Server Service there.
 
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