DROP CONNECTION statement

Description

Drops connection of any user to the database.

Syntax

DROP CONNECTION connection-id

Examples

Example 1

The following statement 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. The following statement returns the connection ID of the current connection:

SELECT connection_property( 'number' )

Side effects

None.

Standards

Permissions

Must have DBA authority.

See also

CONNECT statement [ESQL] [DBISQL]