views:

372

answers:

3

I have tried to connect to SQL Server 2000 through TCP/IP.

I followed these steps and enabled SQL Server 2000 on port 1433.

Then I used the command to test whether the port is opened up:

telnet localhost 1433

But I found the following error:

Connecting To localhost...Could not open connection to the host, on port 1433: 
Connect failed

And I also failed to connect to the server by following these steps.

How to solve this problem and connect to Sql Server 2000 through TCP/IP?

See my configs

alt text alt text

+1  A: 

By default TCP-IP is disabled. You need run SQL Server Configuration Manager->SQL Server Network Configuration and enable the protocol, then restart SQL Server service

I have restarted my PC and the SQL Server. But it didn't work.
JMSA
Sorry, have you enable TCP-IP in Configuration Manager?Try do disable other protocols, leave only TCP-IP. So if you will be able to connect it has to be TCP-IP
A: 

I think you need to be running SQL Server Agent to connect via TCP/IP on 2000.

Cruachan
Tried it. Failed again.
JMSA
+1  A: 

Try disable your firewall temporarily and see if it makes a difference, to isolate the problem.

EDIT: Wait, did you enable TCP/IP on the client or server ? If you only enabled it on the client, then that explains it.

It must be enabled on both to allow communication. From your error, it looks like the server does not accept TCP connections. I don't remember what SQL 2000 calls the program, but find something like "SQL Server Network Configuration", not "Client Configuration". And turn on TCP there.

Perhaps show us a screenshot of your network configuration dialog.

Alex
Tried it. Didn't work.
JMSA
I have enabled TCP in both client and server through Client Network Util and Server network Util respectively.
JMSA