Using Transactions

Transactions should be used whenever data is written. Writing multiple rows of data in a transaction not only improves performance, but also ensures data integrity while providing the option of undoing the changes. However, transactions should be kept open as briefly as possible. No user interface polling should occur while a transaction is open.

See the BeginTransaction, EndTransaction, and RollbackTransaction methods on the Schedule object.