Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
NAME
session - manage server connections

SYNOPSIS
session [-d] [ID]
session -c ID

DESCRIPTION
A session is an opened server connection with an unique identifier assigned. A new session can be opened by \connect command, and multiple sessions can be created and tracked in a fluid shell.

Session changes the current server connection to the connection associated with the session identified by ID. With no arguments supplied, session prints the list of managed sessions on standard output; an asterisk character, '*', is appended to the ID of the session that is currently being used.

If -c option is specified, session closes the sessions identified by IDs. After a session is closed, it is removed from the session list and the server connection associated with the session is disconnected.

If a fluid shell is created with a server connection file supplied, the connection initially established is managed as a session with 'default' assigned as the session ID.

OPTIONS
-c
Close the sessions identified by IDs.

-d
Print the name of the directory where server connection files are stored when listing sessions.

NOTES
If the connection is from a Query Analyzer window, the session is disconnected but the database connection is not closed.

SEE ALSO
      connect
      disconnect
      reconnect