Remote DataBase Connection to SQL 2000

Hello:

I am trying to connect to SQL 2005 from a C# Windows program using a remote location via VPN, but I have been unable to get a connection. The error that I am getting is as follows:

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)".

In the Client utility, I have both named pipes and tcp/ip enabled.

This is the connection string I am using:

"Integrated Security=SSPI;Data Source=server address;Initial Catalog=Northwind ";

Also, the error that I am getting says that I am using SQL 2005, but I am not. The installed program is SL 2000 (I don't get this at all!).

I have also tried to extend the server address with the default port setting as follows: (Address): 1433.

AND...I am not using a Named Piped protocol, even though is is enabled. I am using TCP/IP.

TOTAL CONFUSION!!! Please help....aniskan, are you up for a real challenge?

Thanks, Pat
[1228 byte] By [Pat Tum] at [2007-11-20 9:13:51]
# 1 Re: Remote DataBase Connection to SQL 2000
Your post is somewhat vague. First you are saying that you are trying to conenct to SQL 2005 and then you are saying that the actual installed program is SQL 2000. You need to find out exactly what you are doing.

If you are using SQL 2005 then check this.
http://support.microsoft.com/kb/914277
Shuja Ali at 2007-11-10 3:30:02 >
# 2 Re: Remote DataBase Connection to SQL 2000
Hello Shuja Ali:

Thank you for the reply and I do apologize for the confusion. Here is the problem: The error says that I am using SQL 2005, but as I said, I DO NOT own a copy of that software. So, please presume that this is a SQL 2000 installation, as I stated in the letter. What do I do to get rid of this ERROR:40 message. Basically, I am asking how to configuire SQL 2000 for remote connections, from scratch. From the posts that I have seen, this seems to be a much shared problem (Google).

Thanks again for your help and insight, Pat
Pat Tum at 2007-11-10 3:31:02 >
# 3 Re: Remote DataBase Connection to SQL 2000
This is most probably happening because of the Firewall. As you said you are connected over a VPN, so you should check with your administrator first.
Shuja Ali at 2007-11-10 3:32:05 >