How to: |
Reference: |
The COMMIT command processes a logical transaction. A logical transaction is a group of data source operations in an application that are treated as one. The COMMIT operation signals a successful end of a transaction and writes the INCLUDE, UPDATE, and DELETE operations to the data source. The data source is, or should be, in a consistent state and all of the updates made by that transaction are now made permanent.
The syntax of the COMMIT command is
COMMIT [;]
where:
Terminates the command. Although the semicolon is optional, it is recommended that you include it to allow for flexible syntax and better processing. For more information about the benefits of including the semicolon, see Language Rules Reference.
For example, if you run a procedure that accesses the App Studio data sources Employee and JobFile and the SQL Server data source Salary, the success or failure of the COMMIT for Salary is independent of the success of the COMMIT for Employee and JobFile. This is known as a broadcast commit.