dbTalk Databases Forums  

Building ODBC Connect strings that work

comp.database.ms-access comp.database.ms-access


Discuss Building ODBC Connect strings that work in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ragtimer
 
Posts: n/a

Default Building ODBC Connect strings that work - 02-10-2004 , 11:02 AM






I've been trying to build a DAO.QueryDef.Connect string, building it
from a user ID and password string obtained previously by a log-in
dialog box, using it to log in to an Oracle database through an ODBC
connection. The problem I have is that it's intermittent, in that
invariably the first time I try to connect I still get the Oracle
log-in prompt where the user has to type in all the info again anyway;
and on subsequent connections sometimes the Connect string gets right
in, sometimes I still get the Oracle log-in dialog.

Here's an example of the Connect string using literals for
illustration:

qdfDWInstallBase.Connect = _
"ODBC;UID=MYUSERID;PASSWORD=MYPASSWORD;DSN=DW"

I have to think the purpose of the Connect string is to automate the
ODBC login. Any help at all would be greatly appreciated. Thanks in
advance!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.