How to prevent "Oracle8 ODBC Driver Connect" dialog from appearing?
From: Jamie Burns <not_at_home.com>
Date: Thu, 6 Nov 2003 02:32:30 -0600
Message-ID: <Q4CdnVbwSehrmzeiRTvUqQ_at_texas.net>
Date: Thu, 6 Nov 2003 02:32:30 -0600
Message-ID: <Q4CdnVbwSehrmzeiRTvUqQ_at_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 - 09:32:30 CET