An Avanade Blogging Community

Welcome to An Avanade Blogging Community Sign in | Join | Help
in Search

Blueblooded Techie

An error has occured while establishing a connection to the server. When connecting to SQL Server 2005...

I encountered the following error while transitioning a .NET application from the development environment to the Integration test environment:

"An error has occured 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 connection to SQL Server))"

This had me stumped for a while as our application was using SQL Server 2000 as the database. After some googling, I found the following post by Richard Byham on DBForums that gave me the solution. 

http://www.dbforums.com/showthread.php?t=1204986

The IT environment DB Server and the client machines had (for some strange reason) SQL Server Express installed. The SQL server 2000 installation on the server (which had the actual DB used by the application) was a named instance. Due to this, the client code was encountering problems in accessing the SQL Server. After uninstalling the SQL Server 2005 Express and reinstalling SQL Server 2000 as recommended in the post, everything started working again.

But it sure gave us a few tense moments before we figured this one out.

Published Sunday, September 24, 2006 2:35 AM by BinaryGuy

Comments

No Comments
Anonymous comments are disabled

This Blog

Post Calendar

<September 2006>
SuMoTuWeThFrSa
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

Post Categories

News

The posts on this weblog are provided "as is" with no warranties and confer no rights. The opinions expressed herin are the personal opinions of the individual authors and do not represent the views of Avanade in any way.

Syndication