Permanently updates all database operations since the previous COMMIT, ROLLBACK, or CONNECT for the specified transaction object.
Using COMMIT and ROLLBACK in a server component COMMIT and ROLLBACK commands embedded in a server component may have different effects depending on the setting of the UseContextObject DBParm parameter.
For information on the UseContextObject parameter see Connecting to Your Database. For information on deploying components to a transaction server, see Application Techniques.
Syntax
COMMIT {USING TransactionObject} ;
Parameter Description
TransactionObject The name of the transaction object for which you want to permanently update all database operations since the previous COMMIT, ROLLBACK, or CONNECT. This clause is required only for transaction objects other than the default (SQLCA)
Usage
COMMIT does not cause a disconnect, but it does close all open cursors or procedures. (But note that the DISCONNECT statement in PowerBuilder does issue a COMMIT.)
Error handling It is good practice to test the success/failure code after executing a COMMIT statement.
Cancels all database operations in the specified database since the last COMMIT, ROLLBACK, or CONNECT.
Using COMMIT and ROLLBACK in a server component COMMIT and ROLLBACK commands embedded in a server component may have different effects depending on the setting of the UseContextObject DBParm parameter.
For information on the UseContextObject parameter see Connecting to Your Database. For information on deploying components to a transaction server, see Application Techniques.
Syntax
ROLLBACK {USING TransactionObject} ;
Parameter Description
TransactionObject The name of the transaction object that identifies the database in which you want to cancel all operations since the last COMMIT, ROLLBACK, or CONNECT. This clause is required only for transaction objects other than the default (SQLCA)
Usage
ROLLBACK does not cause a disconnect, but it does close all open cursors and procedures.
Error handling It is good practice to test the success/failure code after executing a ROLLBACK statement.