dbTalk Databases Forums  

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

comp.database.oracle.misc comp.database.oracle.misc


Discuss How to prevent "Oracle8 ODBC Driver Connect" dialog from appearing? in the comp.database.oracle.misc forum.



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

Default How to prevent "Oracle8 ODBC Driver Connect" dialog from appearing? - 11-06-2003 , 03:32 AM






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","MyPasswo rdUser");
wspCurrent.Append();

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


Any help would be appreciated...

Jamie



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.