ODBC database errors in VB 5.0 and Access 97 
Author Message
 ODBC database errors in VB 5.0 and Access 97

Has anyone out there experienced this?  More to the point, has anyone
found a way around it?

I have been trying to get a VB5.0 app to connect to a Sybase SQL Server
11.0 database via Sybase/Intersolv's ODBC driver (release 3.00).  I am
running this all on a Pentium 200 with Win 95.  On a sporadic basis, I
get ODBC 3146 errors when I try to connect to the database, or later
when I try to read or update it.  Typically (but not always) I get a
message from the ODBC driver indicating a bad call to a Sybase ctlib
function (usually ct_con_props).  This happens whether I write custom
code or used code generated straight out of the data control wizard.

Moreover, mysteriously, it is clear that ODBC connections are working at
some level.  VB manages to do this when (e.g.) I use the data control
wizard to specify the databases and tables which will be bound to the
control.  It successfully manages to interrogate the database and put
the tables and their columns in a list box.  It's just in the generated
code that the error arises.  

Also, mysteriously, the exact same problem arises (again sporadically)
when I try to access the database via Access 97.  However, it does not
seem to happen when I code in Visual C++ (although I haven't tried it as
much).  Finally, I have a C++ program that reads and updates some
database tables directly using CTlib from my Win95 machine.  This works
without difficulty, so I know underlying connectivity to Sybase is

I have spent about 1.5 weeks with Microsoft support and also Sybase
support on this problem without success (unless you call mutual finger
pointing 'success'...).  I don't know what's left to try except going to
something like PowerBuilder and avoiding ODBC entirely.  If anyone has
an idea of what the problem is or how to get around it, I'd be very
grateful to hear it.

Many thanks in advance,

--- John Aach

Sun, 26 Dec 1999 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. ODBC error after compacting Access 97 database

2. Storing various files types in VB 5.0/Access 97 databases


4. Converting Access 97 database to VB 5.0

5. HELP: Problem with secure Access 97 database and VB 5.0

6. Access 97 Database to VB 5.0 Code Converter

7. Run-time error '3075': Access 97 and VB 5.0

8. VB 5.0, OLE, Access 97, Graph 97

9. Help: convert access 2.0 to access 97 using VB 5.0

10. Connecting to an Access 95 database via an ODBC driver in VB 5.0

11. Connecting to an Access 95 database via an ODBC driver in VB 5.0

12. Export to ODBC Access 97 Database


Powered by phpBB® Forum Software