SQL 2000 & SQL 2005 Side By Side...

I'm stumped.

I've got an instance of SQL 2000 (staging\staging2000) running on a box side-by-side just fine with an instance of SQL 2005.  When I'm working in Visual Studio on the staging box, it works just fine.  I connect and get into the 2000 instance of the database with no problems.

As soon as I move over to my laptop (same configuration), I get ...

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)

My connection string is calling the SQL 2000 instance properly (as far as I know).

server=staging\staging2000;initial catalog=xxxxx;uid=xxxxx;password=xxxxx;

The .net connector is apparently trying to connect to the 2005 instance.  I'm stumped.  Anyone have any suggestions?

Print | posted on Monday, April 24, 2006 7:17 AM

Feedback

# re: SQL 2000 & SQL 2005 Side By Side...

left by Greg Young at 4/24/2006 10:45 AM Gravatar
Its trying to connect via named pipes it seems to me which won't work from a remote machine. Might be just defaulting that way since you don't have it set ..

# re: SQL 2000 & SQL 2005 Side By Side...

left by JBarbatos at 4/24/2006 11:21 AM Gravatar
Is this instance of 2000, SP3 or greater? If so can anyone else connect to this box? There was an security update that locked MSDE to working only locally. Google DISABLENETWORKPROTOCOLS.

# re: SQL 2000 & SQL 2005 Side By Side...

left by roth4fun at 6/16/2006 7:09 AM Gravatar
You can run the SQL Server Surface Area Configuration tool, choose your server, choose remote connections, and enable both named pipes and TCP connections. It sounds like it is set for TCP only in your case.
Title  
Name
Email (never displayed)
Url
Comments   
Please add 7 and 5 and type the answer here: