how to judge the oracle service is available [message #421155] |
Fri, 04 September 2009 10:35  |
yugiant
Messages: 1 Registered: September 2009
|
Junior Member |
|
|
Hi
Now i use ado to connect oracle in vc++,but if the oracle service is down,the program is no response
So i want get a method to judge if the oracle service is available,and then run the program,otherwise show a message of quit the program.
Now i use:
m_pConnection->Open("Provider=MSDAORA.1;Data Source=orasrv;","user","user123",adModeUnknown);
if m_pConnection->State==0 .......
but if the oracle service is down,the program is waitting
how can i work out my program to get a good method
thanks a lot
|
|
|
|
|