Re: detect disconnected Database by ADO
- From: "Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom>
- Date: Tue, 28 Aug 2007 18:28:26 +0100
Is-it possible to know the ADO connection state of a Database
(_ConnectionPtr) ?
The property State give the previous command state.
Is there a method to know the connection state (synchronous) ? (for
example to know if the database is down , or the server is unavailable,
...)
Do a Connection Execute of "SELECT 1" and see what the Status is afterwards.
It is the cheapest round-trip SELECT.
Stephen Howe
.
- Follow-Ups:
- Re: detect disconnected Database by ADO
- From: Olivier
- Re: detect disconnected Database by ADO
- References:
- detect disconnected Database by ADO
- From: Olivier
- detect disconnected Database by ADO
- Prev by Date: detect disconnected Database by ADO
- Next by Date: Advice On How To Keep Data Please
- Previous by thread: detect disconnected Database by ADO
- Next by thread: Re: detect disconnected Database by ADO
- Index(es):