Groups | Blog | Home
all groups > dotnet ado.net > april 2008 >

dotnet ado.net : SQL 2005 Error connecting to SQL2000


Ant
4/2/2008 3:20:00 AM
Hi,
I'm connecting to an SQL2000 Server, it runs a very slow SP that takes
around two minutes. I've set the command & connection timeout to handle this.
It used to work fine but now I get a seemingly unrelated error. I can connect
remotely to do simple queries & LINQ queries but the SP doesn't run.

Any ideas would be gratefully appreciated

Below is the error message:

"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)"
Cowboy (Gregory A. Beamer)
4/2/2008 7:58:14 AM
A couple of things I can think of immediately:

1. Someone has shut off a protocol that you are using (no matching protocol
between servers)
2. You have removed the default instance and are trying to hit a named
instance via Shared Memory
(http://support.microsoft.com/kb/926929/en-us)

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
[quoted text, click to view]

RobinS
4/6/2008 10:01:57 PM

[quoted text, click to view]

First, it thinks you are connecting to SqlServer2005.

In SQLServer2005, in the Surface Configuration, you can configure the
surface area for Services and Connections. Then under the dialog that comes
up, open Database Engine, click on Remove Connections, set "Local and remote
connections" to "Using both TCP/IP and named pipes".

It sounds like someone has changed this to "Using TCP/IP only", and you can
no longer connect with named pipes.

RobinS.
GoldMail.com
AddThis Social Bookmark Button