ij Commands and Errors Reference,
Page 11 of 37


[top]
[prev]
[next]
Documentation Top
Index for This Book

Absolute
After Last
Async
Autocommit
Before First
Close
Commit
Connect
Disconnect
Driver
Elapsedtime
Execute
Exit
First
Get Cursor
Get Scroll Insensitive Cursor
Help
Last
MaximumDisplayWidth
Next
Prepare
Previous
Protocol
Readonly
Relative
Remove
Rollback
Run
Set Connection
Show Connections
Wait For

Disconnect

Syntax

DISCONNECT [ ALL | CURRENT | Identifier ]

Description

Issues a java.sql.Connection.close request against the current connection. There must be a current connection at the time the request is made.

If ALL is specified, all known connections are closed and there is no current connection.

Disconnect CURRENT is the same as Disconnect.

If a connection name is specified with an identifier, the command disconnects the named connection. The name must be the name of a connection in the current session provided with the ij.connection.connectionName property or with the Connect command.

If the ij.database property or the Connect command without the AS clause was used, you can supply the name the system generated for the connection. If the current connection is the named connection, when the command completes, there will be no current connection and you must issue a Set Connection or Connect command.

A Disconnect command issued against a Cloudscape connection does not shut down the database or Cloudscape (but the Exit command does).

Example

 ij> connect 'jdbc:cloudscape:menuDB;create=true';
 ij> -- we create a new table in menuDB: 
 CREATE TABLE menu(course CHAR(10), ITEM char(20), PRICE integer);
 0 rows inserted/updated/deleted
 ij> disconnect;

 ij> protocol 'jdbc:cloudscape:';
 ij> connect 'toursDB;autocommit=false' as tours1;
 ij> connect 'newDB;create=true' as newDB;
 TOURS1 -    jdbc:cloudscape:toursDB;autocommit=false
 NEWDB* -    jdbc:cloudscape:newDB;create=true
 * = current connection
 ij(NEWDB)> set connection tours1;
 ij(TOURS1)> disconnect all;
 ij> 
 
 java -Dij.connection.toursDB=jdbc:cloudscape:toursDB
-Dij.connection.History=jdbc:cloudscape:History
COM.cloudscape.tools.ij
ij version 2.0 (c) 1997-1999 Cloudscape, Inc. HISTORY* - jdbc:cloudscape:History TOURSDB - jdbc:cloudscape:toursDB * = current connection ij(HISTORY)> disconnect toursDB; ij> show connections; HISTORY* - jdbc:cloudscape:History * = current connection ij>
[top]
[prev]
[next]


Cloudscape Version 3.0
For technical support, go to: www.cloudscape.com and click Support.
Copyright © 1998 and 1999 Cloudscape, Inc. All rights reserved.