version 1.5
OC TRANSACT COMMAND (login_ID; cursor_ID; commit/Rollback)
| Parameter | Type | Description | |
| login_ID | Longint | Login ID | |
| cursor_ID | Longint | Cursor ID | |
| commit/Rollback | Boolean | False = Commit, True = Rollback |
Description
The OC TRANSACT COMMAND command commits or rolls back a transaction.
To use transactions, you must first set the connection to manual-commit mode using the OC Set login option.
Some data sources do not support transactions at all, while others place restrictions on what kind of statements can be included in a transaction. To find out what kind of transaction processing a data source supports, use OC Get info to obtain the SQL_TXN_CAPABLE value.
See Also