Check Database Connection
Posted on 2002-06-17
I created a CDatabase object that connects to a remote database by ODBC. I would like to know the connection status before I execute a query in my application.
(if there is no connection, the applications falls)
Is there any way to know if the connection to the DB is on or off (in case the DB computer is turned off or any connection failure had occured )????
Thanks in advance