VB6 application gives ODBC Drivers error '80004005'

Posted on 2004-04-17
Medium Priority
Last Modified: 2008-02-01
Hi there,

I'm using a vb6 application on my win2k machine which connects to a remote sql server. When I run the application I get the following error:

Run-time error '-2147467259 (80004005)':
[Microsoft][ODBC SQL Server Driver][Named Pipes] Specified SQL Server not found.

My colleague wrote this app and on a previous beta version we didnt get any such error. The datasource hasn't changed since.

My question is how can I verify a connection from my win2k client to the sql server manually. Can I run dos utility or something?  Generally how can I go about troubleshooting this error.


Question by:jjbarnsley
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
LVL 34

Expert Comment

ID: 10850582
So are you using a DSN on the machine?  Can you ping the SQL Server by the IP Address?  Can you ping the SQL Server by machine name?

Author Comment

ID: 10850703
DSN:  Not that I can tell. I checked the ODBC Administrator on my win2k client and no dsn sources are setup for sql server. I guess the dsn source is compiled in the application.

The server appears to be up, because my colleague can connect to it remotely from his site, the problem is from mine. Yes I wanted to ping the server but the details are compiled in, when I get at them I'll do just that.

LVL 34

Expert Comment

ID: 10850718
"Yes I wanted to ping the server but the details are compiled in, when I get at them I'll do just that."

So by that, do you mean you don't know the server name/IP address?
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

LVL 75

Expert Comment

by:Anthony Perkins
ID: 10851033
Please maintain these old open questions:
1 05/15/2003 125 commercial support for deploying WAN/VPN...  Open Linux Networking
2 01/16/2004 250 spam control  Open Email/GroupWare
3 02/02/2004 500 Creating quality PDF's  Open Web Development
4 03/01/2004 500 Secure shares on Samba for different use...  Open Linux Networking

Accepted Solution

plq earned 2000 total points
ID: 10851048
Use TCPIP instead of named pipes. You can set it using the sql client network utility.

TCPIP is faster than named pipes anyway.

Author Comment

ID: 10851133
Yes got the sql server details. I tested setting a system dsn in the odbc administrator. When I had this set
to Named Pipes I had the sql error I outlined above. But when I followed plq's suggestion and used TCP/IP
instead the odbc connection was setup.

Expert Comment

ID: 11462493
A grade C ? Normal practice would be a grade A when the solution is correct.

Also experts will not answer your questions in future if you award grade C's. It doesn't cost you any more to award an A or a B. Grade C's are generally seen as insulting or ingratitude on this site.

Please can you reconsider.

Author Comment

ID: 11474753

Yes you are absolutey correct. That was my mistake. I always provide a 'A' grade
where I can as I do appreciate that experts provide.

Apologies I didn't mean to cause any offense. Admin, can this be regraded to an 'A'?



Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Suggested Courses

741 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