472,119 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

Failing to connect to remote SQL Server 2000 from ASP.NET 2.0 application

I have a problem (like most others posting issues on this forum :) )

I have a remote server running Windows XP SP2, with both SQL Server
2005 Express with Advanced Features and SQL 2000 installed. I can
remotely connect to the SQL Server 2000 instance using Query Analyser
or Enterprise Manager. I can also remotely connect to the SQLEXPRESS
using Management Studio Express Edition.

I am writing an ASP.NET 2.0 with VS2005 application (actually upgraded
from .NET 1.1 with VS2003). However, now I cannot connect to the
remote SQL Server 2000 from the application. I can connect to a
locally installed SQL Server 2000 on the development machine, but I
cannot connect to the remote server. I get these two errors:

WITH NAMED PIPES DISABLED AND TCP/IP ENABLED IN THE SQL SERVER 2000
CLIENT NETWORK UTILITY
provider: TCP Provider, error: 0 - A connection attempt failed because
the connected party did not properly respond after a period of time,
or established connection failed because connected host has failed to
respond.

WITH BOTH NAMED PIPES AND TCP/IP ENABLED IN THE SQL SERVER 2000 CLIENT
NETWORK UTILITY (TCP/IP WITH HIGHER PREFERENCE THAN NAMED PIPES)
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 have also noticed that from VS2005 using the Server Explorer to add
a data connection, I can only connect to the remote SQL Server 2000 if
I use the OLEDB provider but not the SqlClient.

HOW CAN I FIX THIS? WHERE AM I GOING WRONG?

Mar 28 '07 #1
0 4771

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Per Bergland | last post: by
5 posts views Thread by Daniel Bass | last post: by
1 post views Thread by Antonello Calabrò | last post: by
4 posts views Thread by =?Utf-8?B?VGVycmFuY2U=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.