RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSet.PSStartTransaction Method

Starts a transaction that encapsulates all activity until a call to PSEndTransaction.

Pascal
procedure PSStartTransaction; virtual;
C++
virtual __fastcall PSStartTransaction();

The provider component applies updates within a transaction, if possible. To do so, it calls PSStartTransaction to start a transaction before applying updates, and calls PSEndTransaction when all updates are applied or too many errors are encountered.

Note: TDataSetProvider only starts a transaction (Using PSStartTransaction) if the PSInTransaction method indicates that there is no transaction already established. That is, it does not assume nested transaction support is available.
 

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