Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically Connecting to Oracle database in code...

Status
Not open for further replies.

THoey

IS-IT--Management
Jun 21, 2000
2,142
US
I am reposting this question to see if I might be able to figure out a problem I am having. I have an Oracle 7.3.4 table that I want to download nightly into Access 97. I have almost everything else set up to automatically run this process except I can't get Access to connect or link to the Oracle database without someone being there to provide the login and password.

I think my problem boils down to the connect string. Does anyone have an example of a connect string to an Oracle database that they run in VB? I have all the information and connect to this table manually all the time, but just need to figure out the format to do it in code. I have read and reread the help and example and, well, they are very vague due to the numerous "other" databases that Access will link to.

All help would be appreciated. Thanks...

Terry M. Hoey
th3856@txmail.sbc.com

Ever notice that by the time that you realize that you ran a truncate script on the wrong instance, it is too late to stop it?
 
Try making the connect variable a single concatenated var instead of 3 separate variables -- ex: v_connect_var = "v_user" + "/" + "v_password" + "@" + "v_db_alias"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top