Specifying a database in code that uses ODBC drivers 
Author Message
 Specifying a database in code that uses ODBC drivers

I am working on a database program that uses the ODBC drivers and my VB6
code uses the line:

    db.open "dsn=members"

members refers to the ODBC location of the database.

Can anyone provide code that I can use that specifies that the database is
in the application path and not the path of the current file as I want to
distribute the program.

Current example:
    ODBC points to C:\DATABASE\filename

I would like the directory of the application:
    C:\PROGRAM FILES\DATABASE\filename




Thu, 13 Dec 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. [ODBC Driver Manager] Data source name not found and no default driver specified

2. Connecting vb4 to an ingres database using datadirect odbc driver

3. Open Database using ODBC Driver for Oracle

4. Connect Informix database thru ODBC driver using Visual Basic

5. Oracle ODBC driver / Microsoft ODBC driver for Oracle

6. [ODC Driver Manager] Data source name not found and no default driver specified

7. full ODBC driver sample code wanted

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

9. ODBC Drivers Ingres 6.4 Database

10. ODBC driver for FileMakerPro database files?

11. ODBC driver for paradox 4.5 database???

12. Info on VB Database ODBC Drivers for Paradox

 

 
Powered by phpBB® Forum Software