sql connection problem only from another computer

Posted by geoff on Stack Overflow See other posts from Stack Overflow or by geoff
Published on 2010-04-06T12:09:16Z Indexed on 2010/04/06 12:13 UTC
Read the original article Hit count: 131

Filed under:

I have a task that runs nightly. It connects to a sql server on our network and when I run it from my machine it runs fine. When it runs from the other computer I get the following error.

System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

I've checked with our systems admin and he said nothing has changed on the sql box or on the box in question so I'm not sure why it runs fine from one and not the other. From what I've read about this error it sounds like it's a setting on the sql server that would disallow it to run on either box.

© Stack Overflow or respective owner

Related posts about sql-server-2005