RollbackTransaction

The RollbackTransaction function rolls back any changes that are done by an SQL operation.

The RollbackTransaction function is a local transactions function that is used in SQL operations. The function causes all changes to the database to be undone when an exception occurs between the BeginTransaction() and CommitTransaction() functions. It is recommended to call the RollbackTransaction() function within the localized exception handler.

You must always call the CommitTransaction() function to complete a transaction even if the RollbackTransaction() function is called.

For more information about the local transactions functions, see Using local transactions in a policy.

Arguments

The RollbackTransaction() function takes no arguments.

Note: The ObjectServer does not support the use of the RollbackTransaction function.