Groups | Blog | Home
all groups > sql server new users > june 2006 >

sql server new users : dot net app cant connect to server


Steve
6/22/2006 7:28:05 PM
I am writing a dotnet app that needs to connect to SQL 2000. I have used the
imports system.data.SqlClient. I have tried everything I can think of but I
constantly get an error when it tries to connect to the server.

"An error has occurred while establishing a connection to the server.
(provider:Named Pipes Provider, error: 40 - Could not open a connection to
SQL Server)

Jens
6/25/2006 1:30:50 PM
Could you show us your connection string, seems that you are using
named pipes for some reason (perhaps TCPIP is disabled at the client or
server). make sure that if you want to use TCPIP that on both the
client and the server the same protocol is enabled.

HTH, jens Suessmeyer.

---
http://www.sqlserver2005,de
---
AddThis Social Bookmark Button