Drops the current connection to a database.
disconnect [ connection_name | current | all ] connection_name : identifier , string, or hostvar
is the login name you are using to make the connection
indicates that you are disconnecting the current connection
indicates that you are disconnecting all connections
is the identifier you are using for the connection information
is the string you are using for the connection information
is the variable information for the host name and port
Disconnects all connections:
disconnect all
disconnect drops a connection to the database server and releases all resources used by it. If the connection to be dropped was named on the connect statement, the name can be specified. Specifying all drops all of the application’s connections to all database environments. current is the default, and drops the current connection.
An implicit rollback is executed on connections that are dropped.
Any user can execute this command.
Copyright © 2005. Sybase Inc. All rights reserved. |