Solved

Cannot create Odbc connection to sql server 2k from one windows XP machine to another XP machine running sql server 2000 in the same LAN

Posted on 2007-03-28
5
1,358 Views
Last Modified: 2008-04-03
I have a small Lan with 4 machines running windows XP prof. One of them has sql server 2000 installed on it. I had two machines connect to sql server 2k using ODBC connection and they work fine. I recently bought a new dell computer and then tried to use Odbc to connect to sql server just like the other computers using the same sql driver, sql server username and password but it does not connect.
The servername shows up in "Microsoft Sql server DSN configuration window" but when I go to next and then put Login ID and password and say Next, it does not connect. Any ideas what may be going wrong or where to check?

0
Comment
Question by:uzairp
5 Comments
 

Expert Comment

by:jrosengr
ID: 18812149
Use IP address to connect to sql server
0
 

Author Comment

by:uzairp
ID: 18812413
How can I know the ip address?
0
 

Author Comment

by:uzairp
ID: 18813002
I used the ip address of the machine (instead of machine name) in the odbc connection window but I still got the same error. Here is the error I receive;
connection failed: 01000
sql server error: 10060
Microsoft odbc driver tcp/ip sockets, connection open connect()
connection failed: sql state: 08001
sql server error: 17
microsoft odbc sql server driver tcp/ip socket sql server does not exist or access denied.
0
 
LVL 2

Accepted Solution

by:
jhshen earned 250 total points
ID: 18813114
A few things you may need to do to identify the cause of this problem.
1. Ensure the 2 PCs' IP addresses belong to the same subnet mask. For example, 192.168.0.100, 192.168.0.101. subnet mask: 255.255.255.0
2. In your Winxp machine, open DOS command prompt and type the following command:
telnet 192.168.0.101 1433
Here the 192.168.0.101 is an example of your SQL 2K server IP address
If you saw some error message, please check your SQL2K server and WinXP firewall setting see if the SQL server port 1433 is not allowed.
Also, please check your SQL 2K server, Start Menu->Microsoft SQL Server->Server Network Utility
Ensure "TCP/IP" protocal is in Enable protocols list

Let's try to figure out the problem cause first. :-)
0
 
LVL 1

Assisted Solution

by:palvin
palvin earned 250 total points
ID: 18813634
Hi uzairp,
Please apply the SQL2000 service pack 4 patches. i will resolved your issue. i hit the problem before due with not apply SQL2000 patches
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question