Re: detect disconnected Database by ADO
- From: "Olivier" <olive@xxxxxxxxx>
- Date: Tue, 28 Aug 2007 20:33:15 +0200
Thanks, that works...
I saw that it is possible to do a sqlpinf (ie scan the UDP 1434 port to see
if a sqlserver is in listening).
"Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom> wrote in message
news:%23fAOZjZ6HHA.5980@xxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- detect disconnected Database by ADO
- From: Olivier
- Re: detect disconnected Database by ADO
- From: Stephen Howe
- detect disconnected Database by ADO
- Prev by Date: Re: Advice On How To Keep Data Please
- Next by Date: Re: Advice On How To Keep Data Please
- Previous by thread: Re: detect disconnected Database by ADO
- Next by thread: Advice On How To Keep Data Please
- Index(es):