Show TOC

DROP CONNECTION StatementLocate this document in the navigation structure

Drops any user connection to the database.

Syntax
DROP CONNECTION <connection-id>
Parameters

(back to top)

  • connection-id 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' )
Examples

(back to top)

  • Example 1 drop connection with ID number 4:
    DROP CONNECTION 4
Usage

(back to top)

You cannot drop your current connection; you must first create another connection, then drop your first connection.

Standards

(back to top)

  • SQL—Vendor extension to ISO/ANSI SQL grammar.
  • SAP Database products—Not supported by SAP ASE.
Permissions

(back to top)

Requires the DROP CONNECTION system privilege.