|
Class Reference
%SYSTEM.SQLGateway
|
|
![]() |
|||
Private Storage |
The %SYSTEM.SQLGateway class provides an interface for managing Gateway connections.
You can use it via the special $system object:
Do $system.SQLGateway.DropAll()
|
|
Methods | |||
---|---|---|---|
DropAll | DropConnection | GetJDBCConnection | GetODBCConnection |
Help | SetAllODBCConnectOption | SetAutoCommit | TestConnection |
Transact |
|
Drop all open connections and unload the SQL Gateway library.
Disconnect a JDBC or ODBC connectionnm - connection name
Connect to a previously defined JDBC Gateway connection.It returns an empty string if the connection attempt was unsuccessful.
nm - connection name
Connect to a previously defined SQL Gateway ODBC connection.It returns an empty string if the connection attempt was unsuccessful.
nm - connection name
timeout - timeout
legacy - legacy mode
Set the given integer option for all open connectionsoption - option to set
vparm - value associated with option
Set the autocommit mode for all open connectionsac = { 0 - AUTOCOMMIT OFF, 1 - AUTOCOMMIT ON}
Test a previously defined SQL Gateway connection.It writes the diagnostic ouput to a current device.
nm - connection name
timeout - timeout (only relevant for ODBC connections)
Request a commit or rollback operation for all active operations on JDBC or ODBC connections.type = { 0 - SQL_COMMIT, 1 - SQL_ROLLBACK}