RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DataStoreConnection.BeginTransaction Method ()

Begins database transaction.

Pascal
function BeginTransaction: DataStoreTransaction;
function BeginTransaction(level: IsolationLevel): DataStoreTransaction;
C++
DataStoreTransaction BeginTransaction();
DataStoreTransaction BeginTransaction(IsolationLevel level);

BeginTransaction begins a database transaction. By default, the connection operates in auto-commit mode. After a transaction is started, all changes made are pending until Commit is called on the transaction object. After the commit, the connection operates in auto-commit mode again.  

Returns an DataStoreTransaction instance representing the transaction. 

The transaction isolation level is set to the passed level for the remainder of this transaction. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!