Using the CONNECTED function
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Using the CONNECTED function
The CONNECTED function tests whether
a database is connected. This function helps you to route program control
around portions of an application that might be affected by database connection
failures and disruptions. This example tests a database connection with
the CONNECTED function:
|
If the database is not connected, the above
code attempts to connect the database. This example only runs the
procedure if the database is connected. Auto-connect precludes the
use of the CONNECTED function to test for database
connections. For more information on the CONNECTED function,
see ABL Reference.