DISCONNECT
DISCONNECT (or BYE, or CLOSE) reconnects to the Connections Definition File, closing whatever database connection was open. DISCONNECT API clears only the active API session context established by CONNECT API, without affecting the database connection at all. If there is no active API context, DISCONNECT API is a no-op.
Arguments
none; or API to clear the active API session context
Examples
DISCONNECT;
BYE;
DISCONNECT API;
Notes
Closes the current connection: DISCONNECT, BYE or CLOSE. Takes no arguments.
This does not leave BroadSQL disconnected: it tests connectivity to the Connections Definition File ($CDF) and, if reachable, switches back to it exactly as CONNECT $CDF would (closing whatever was open). If $CDF itself is not reachable, an error is reported and the current connection is left untouched.
DISCONNECT API; (SPRINT XT02-7B) clears only the active API session context (see ApiSessionContextHolder) and never touches the database connection above.
Last modified in release 5.2.3.
BroadSQL