Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

COMMIT – PB Docs 2022 – PowerBuilder Library

COMMIT – PB Docs 2022

COMMIT

SQL statement

Description

Permanently updates all database operations since the previous
COMMIT, ROLLBACK, or CONNECT for the specified transaction
object.

Syntax

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.

Examples

Example 1

This statement commits all operations for the database specified
in the default transaction object:

Example 2

This statement commits all operations for the database specified
in the transaction object named Emp_tran:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x