Contents Index Inserting updating, and deleting rows Accessing schema information

UltraLite for MobileVB User's Guide
  Understanding UltraLite for MobileVB Development

Transaction processing in UltraLite


UltraLite provides transaction processing to ensure the correctness of the data in your database. A transaction is a logical unit of work: it is either all executed or none of it is executed.

By default, UltraLite operates in AutoCommit mode, so that each Insert, Update, or Delete is executed as a separate transaction. Once the operation is completed, the change is made to the database. If you set the ULConnection.AutoCommit property to False, you can use multi-statement transactions. For example, if your application transfers money between two accounts, either both the deduction from the source account and the addition to the destination account must be completed, or neither must be completed.

If AutoCommit is set to False, you must execute a ULConnection.Commit statement to complete a transaction and make changes to your database permanent, or you must execute a ULConnection.Rollback statement to cancel all the operations of a transaction.


Contents Index Inserting updating, and deleting rows Accessing schema information