"Zaza Turmanidze" < XXXX@XXXXX.COM > wrote in
No way except to try the connection and see if it fails.
Depending on the database server you might come up with some kind of 'ping'
or 'watchdog' timer process.
But IMHO this is often of little use. The best solution is to managing your
program to catch expections and deal with them at that time.