DISCONNECT Statement [Interactive SQL]

Drops a connection with the database.

Quick Links:

Go to Parameters

Go to Examples

Go to Usage

Go to Standards

Go to Permissions

Syntax

DISCONNECT [ { connection-name | CURRENT | ALL } ]

Parameters

(back to top)

Examples

(back to top)

Usage

(back to top)

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.

An implicit ROLLBACK is executed on connections that are dropped.

Standards

(back to top)

  • SQL—ISO/ANSI SQL compliant.
  • SAP Sybase Database product—Supported by Open Client/Open Server.

Permissions

(back to top)

None

Related reference
CONNECT Statement [ESQL] [Interactive SQL]
SET CONNECTION Statement [ESQL] [Interactive SQL]