Disconnecting databases
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Disconnecting databases
By default, OpenEdge disconnects all databases
at the end of a session. You can explicitly disconnect a database
with the DISCONNECT statement, which has the following syntax:
Syntax
|
The logical–database–name represents the logical name of a connected database. It can be an unquoted string, a quoted string, or a character expression.
A DISCONNECT statement
does not execute until all active procedures that reference the
database end or stop. In the following procedures, the mydb database
is not disconnected until the end of the i-subproc1.p procedure:
i-mainprc1.p
|
i-subproc1.p
|
i-subproc2.p
|