RAD Studio VCL Reference
TDataSet.PSStartTransaction Method

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

procedure PSStartTransaction; virtual;
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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!