VB3 Problem connecting to Oracle via ODBC 
Author Message
 VB3 Problem connecting to Oracle via ODBC

I am having a problem connecting to (Personal) Oracle 7.3 from VB3.  I
have the following code:

                Dim TrackData as String
                Dim lsDS.... etc etc

                This area has code to retrieve the settings from
ODBC.INI
                and our security system, the following lines in for
readability,
                as the values are returned correctly.

            lsDSN = "Oracle73_16"
            lsUser = "UserName"
            lsPass = "Password"

            lsODBC = "ODBC; "
            lsODBC = lsODBC & "DSN=" & lsDSN & "; "
            lsODBC = lsODBC & "UID=" & lsUser & "; "
            lsODBC = lsODBC & "PWD=" & lsPass & "; "
            Set TrackData = OpenDatabase("", False, False, lsODBC)

Now this always brings up a Select Data Source box, which when I click
on 'Oracle73_16' and click OK it goes straight in without bringing up or
needing the User/Password entry again.

I have tried using a    DBQ=local_test; entry in the connect string to
no avail.  I have also tried a  DATABASE=local_database;        entry,
and DATABASE = 2: ; (Personal Oracle Connect String) again with no luck.

I have used ODBC before on both 16 and 32 bit flavours of VB, but have
not had this problem before, but this is the first time I am trying to
automate an ORACLE logon (I have done it successfully with Informix and
SQL server).

The Oracle ODBC test util works fine, and I can attach tables from the
O73 database into Access2, so the ODBC is set up OK, it is just a VB
thing, and I CANNOT find it!

Can anyone shed dome light on the matter?

Cheers

Ian Venner
Project Manager
Ad Valorem



Fri, 18 Aug 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Anybody have info on connecting VB4 to Oracle via 16-bit ODBC

2. Connecting to Oracle via VB thru ODBC

3. Connecting to Oracle DB via VB (ODBC)...

4. oracle connected via odbc commits implicitly

5. Connecting from VB3.0 to Access2.0 via ODBC

6. A Problem when connecting to a Crystal report through Oracle via VB

7. Problems connecting to a Crystal report through Oracle via VB

8. Problems connecting to a Crystal report through Oracle via VB

9. A Problem when connecting to a Crystal report through Oracle via VB

10. Problem connecting to SQL server via ODBC

11. Problems connecting to Sybase via ODBC

12. Problem connecting to Oracle Database using ODBC

 

 
Powered by phpBB® Forum Software