Drops a connection with the database.
DISCONNECT [ { connection-name | CURRENT | ALL } ]
identifier, string, or host-variable
This statement shows how to use DISCONNECT in Embedded SQL:
EXEC SQL DISCONNECT :conn_name
This statement shows how to use DISCONNECT from dbisql to disconnect all connections:
DISCONNECT ALL
The DISCONNECT statement drops a connection with the database server and releases all resources used by it. If the connection to be dropped was named on the CONNECT statement, then the name can be specified. Specifying ALL drops all of the application’s connections to all database environments. CURRENT is the default and drops the current connection.
An implicit ROLLBACK is executed on connections that are dropped.
None
None