Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> How to prevent "Oracle8 ODBC Driver Connect" dialog from appearing?
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
![]() |
![]() |