Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Error when trying to connect to SQL Server

Author  Topic 

MrAsian
Starting Member

2 Posts

Posted - 2011-06-06 : 02:51:12
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)

What is the cause of this ?
Any solutions ?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-06-06 : 02:51:50
http://weblogs.sqlteam.com/tarad/archive/2008/05/23/60609.aspx

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

raghuveer125
Constraint Violating Yak Guru

285 Posts

Posted - 2011-06-06 : 02:53:11
Your SQL Server browser services is running?

In Love... With Me!
Go to Top of Page

MrAsian
Starting Member

2 Posts

Posted - 2011-06-06 : 03:15:27
hi yes my sql server browser services is running

this is giving me problems
Dim ds As DataSet = db.ExecuteDataSet(dbComm)

it is giving me the error as stated in my starting post

help
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-06-06 : 03:34:30
See the link I posted. It goes into detail on how to troubleshoot this problem.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -