Skip to main content
Version: Next

SQL LOGOUT

SQL LOGOUT

Does not require any parameters
History
ReleaseChanges
2004Created

Description​

The SQL LOGOUT command closes the connection with an ODBC source that is open in the current process (if applicable). If there is no ODBC connection open, the command does nothing.

System variables and sets​

If the logout is performed properly, the system variable OK is set to 1; otherwise, it is set to 0. You can intercept this error with an error-handling method installed by the ON ERR CALL command.

See also​

SQL LOGIN

Properties​

Command number872
Thread safeno
Modifies variablesOK, error