Drops any user connection to the database.
DROP CONNECTION connection-id
DROP CONNECTION 4
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' )
SQL—Vendor extension to ISO/ANSI SQL grammar.
Sybase—Not supported by Adaptive Server Enterprise.
Requires DBA or OPERATOR authority.