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,341 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to shrink a transaction log file down to a reasonable size.

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now