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. (p
-
Monday, March 12, 2012 10:13 AM
Hi everybody,
I've just installed sql server 2008 r2 and i restored my DB, and i receive 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)
Before i came here i searched every possibilities to fix this error. I followed the correct steps and still shows this error when i am trying to access the website.Please help any help will be appreciated
Thank you so much for you efforts
willockss
All Replies
-
Monday, March 12, 2012 10:25 AMIs MSSQL Service running? :-) Is that default or named instance? If it is named instance , have you created a port and specify it while connecting?
Best Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/
-
Monday, March 12, 2012 10:34 AM
the mssql service is running. What do you mean with the default name or named instance? i am sorry but i am a newbie
Thank you so much
willockss
-
Monday, March 12, 2012 10:49 AMHow many instances (SQL Server installations) do you install on machine?
Best Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/
-
Monday, March 12, 2012 11:38 AMi have just one sql server installed
willockss
-
Monday, March 12, 2012 12:38 PM
Thank you so much for your answer, but i succeed to fix my self.
It was because i was using the default user provided by windows. I've created an SQL user and now is working like a charm
Thank you so much once again
willockss
- Marked As Answer by willockss Monday, March 12, 2012 12:38 PM
-
Monday, March 12, 2012 1:31 PMYou could add that windows account to SQL Server (even better than having SQL Login) and grant connect permissions..
Best Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/
-
Saturday, December 29, 2012 3:19 AM
Hi willockss,
I have same problem as you explained above.Can you tell me that how to create SQL user.I am not getting answer to my problem.I am searching answer from 6 days.Thanks in advance.
- Proposed As Answer by Dinesh Kudale Saturday, December 29, 2012 3:20 AM
-
Saturday, December 29, 2012 10:37 AM
The error message means that you were not able to contact SQL Server, and there are a whole number of possible reasons:
1) SQL Server is not running.
2) You have misspelled the server or instance name.
3) You are connecting from a remote machine, and there is a firewall in the way.
4) You are connecting from a remote machine, and the network is segmented.
5) You are connecting from a remote machine, and the browser service is not running and you are trying to connect to named instance.
6) You are connecting from a remote machine, but SQL Server does not accept local conncetions.And the list goes on.
I suggest that you start a new thread and give more details on your situation. That is, are you trying to connect locally or remotely? From what program are you trying to connect? SSMS, an application, or what? What do you specify for the server name? And so on.
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se -
Sunday, March 31, 2013 7:56 PM
I think most search engines have this post as the first hit so I'll put what my solution was here... its the same solution for Sql Server 2005, 2008, 2008 R2 and 2012 if using the default instance. The steps to enable this...
- Open up Sql Server Configuration Manager
- In the left pane, expand Sql Native Client ** Configuration. Note there is a 32 and 64 bit for later version of Sql and I only do this for the 64 bit version and but I'm sure there are situations where you will need to do it for 32 bit.
- In the right pane there should be TCP/IP, just right click and Enable it.
- Back in the left pane, expand Sql Server Network Configuration and select Protocols for SQLEXPRESS (may also be MSSQLEXPRESS).
- In the left pane, double click on TCP/IP to open the dialog
- Go to the IP Addresses tab of the dialog and scroll to the bottom where it says IPALL
- Set the TCP Port to 1433
- Finally restart the SQL Server Service
Fairly sure this is going to keep being the default for future versions of Sql. My best guess as for why is because opening up the TCP port + Firewall port can allow anonymous access to the SQL database. This in general tends to be bad as attackers do port sniffing on random IP addresses and then will spend 6 months trying to guess the SA account on the system. An easy way to see if this is happening to you is:
- Open up the Event Viewer and check all the failed Sql login attempts. If there are login attempts from random IP addresses in eastern Europe and Russia you probably have an open TCP port and they are trying to guess your password.
-
Thursday, April 04, 2013 5:37 AM
Here details image by image to solve the problem
Start> Program> .
it may be help you

