Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 1st, 2003, 10:15 AM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error when VBA tries to read from SQLDB

I am author of a Visual Basic program which reads data from a SQL DB. This program works fine on some workstations, but not others. I get the following error:

Run-time error '-2147467259(80004005)':
[DBNMPNTW]Specified SQL server not found.

My research so far as led me to check the SQL client config of the workstations in question by running CLICONFG.EXE and changing from Named Pipes to TCP\IP. When I do this the error message becomes:

Run-time error '-2147467259(80004005)':
[DBMSSOCN]General network error. Check your network documentation.

All of the workstations in question, those which run the program fine, and those that do not are Windows 2000 with service pack 4. I have noticed that the file version of CLICONFG.EXE is 1999.10.20.1 on the machines that have the error, and 2000.80.380.0 on the machines that work fine.

Have you seen this, and can you point me towards a solution? Can the problem be solved in the VB code, or does the workstation need to upgraded?

Thanks in advance for any advice you can send my way.



Andrew Duffy-Peter
 
Old December 28th, 2004, 12:14 PM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am running into same problem, except os is XP Pro. Did you find an answer yet? Thanks.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use VBA to Read/Write a Access Query Gino Liu Access VBA 2 January 7th, 2012 04:03 AM
VBA Code to read the structure & data of an excel alam1 Excel VBA 0 April 24th, 2007 11:39 PM
Read Excel Lines VBA gbvdh VB How-To 0 February 26th, 2007 08:44 AM
VBA Formatting cells with Html tags read from XML hemagiri Excel VBA 0 November 22nd, 2006 02:41 AM
Read only Database error larry101 Classic ASP Databases 4 September 11th, 2004 08:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.