Admin Production rocket
Current Publication

DISCONNECT

Enterprise Developer for Eclipse (including UNIX Components) (Japanese) V8.0
Rocket® Enterprise Developer (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.

DISCONNECT

データベースとの接続を解除します。さらに、その接続用に開いていたすべてのカーソルを自動的に閉じます。

構文:

>>---EXEC SQL---DISCONNECT---.-name----.----END-EXEC----><
                             +-ALL-----+
                             +-CURRENT-+
                             +-DEFAULT-+

パラメーター:

name 接続名。
ALL すべての接続 (SQL コンパイラ指令の INIT オプションを使用している場合の自動接続を含む) を切断します。
CURRENT 現在の接続を切断します。現在の接続とは、CONNECT 文が最後に確立した接続、または SET CONNECTION 文が設定した後続の接続です。
DEFAULT デフォルトの接続を切断します。デフォルトの接続とは、接続名を指定していない CONNECT 文による接続です。

例:

EXEC SQL CONNECT TO "srv1" AS server1 USER "sa." END-EXEC
EXEC SQL CONNECT TO "srv2" AS server2 USER "sa." END-EXEC
...
EXEC SQL DISCONNECT server1 END-EXEC
EXEC SQL DISCONNECT server2 END-EXEC.