DROP CONNECTION statement

Description

Drops any user connection to the database.

Syntax

DROP CONNECTION connection-id

Examples

Example 1

Drops connection with ID number 4:

DROP CONNECTION 4

Usage

DROP CONNECTION disconnects a user from the database by dropping the connection to the database. You cannot drop your current connection; you must first create another connection, then drop your first connection.

The connection-id for the connection is obtained using the connection_property function to request the connection number. This statement returns the connection ID of the current connection:

SELECT connection_property( 'number' )

Side effects

None

Standards

Permissions

DROP CONNECTION requires DBA or OPERATOR authority.

See also

CONNECT statement [ESQL] [DBISQL]