Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> How to prevent "Oracle8 ODBC Driver Connect" dialog from appearing?

How to prevent "Oracle8 ODBC Driver Connect" dialog from appearing?

From: Jamie Burns <not_at_home.com>
Date: Thu, 6 Nov 2003 02:32:57 -0600
Message-ID: <nIOdnWiRYpeMmjeiRTvUqQ@texas.net>


I have written a Windows Service to access an Oracle database. A dialog box appears, prompting for user logon if the database is not accessable due to network problems
I just want the connection to fail quietly.

Here's a little code snippet.

// Create workspace.

CDaoWorkspace wspCurrent;
wspCurrent.Create("MyWorkspace","MyUser","MyPasswordUser"); wspCurrent.Append();

// Open database.

CDaoDatabase dbsCurrent(&wspCurrent);
CDaoDatabase dbsCurrent;
dbsCurrent.Open(_T(""),FALSE,FALSE,ODBC;"UID=MyUser;PWD=MyPasswordUser;DSN=M yDSN;");

Any help would be appreciated...

Jamie Received on Thu Nov 06 2003 - 02:32:57 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US