function CheckConnection() : Integer;
Check whether the connection to the database is ok. Possible return values
Most database providers will need to reconnect to the database to check
the connection, so it's not the fastest way to handle database stability.
The fastest way is to simply use the connection, and reconnect if there
is an error. Whichever way you handle checking for a database connection,
the difficult part is deciding what to do if the database isn't available.
- 0 - the status of the database connect be determined without actually executing SQL
- 1 - the database is OK
- 2 - the database is not OK.
© Kestral Computing P/L 2000 - 2003. HL7Connect v2.00-063 generated on 30-Nov 2015.