RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomSQLDataSet.TransactionLevel Property

Indicates the transaction to which this dataset belongs.

Pascal
property TransactionLevel: SmallInt;
C++
__property SmallInt TransactionLevel;

Use TransactionLevel to indicate the active transaction to use when opening this dataset or using it to execute commands. TransactionLevel is the same as the transaction identifier that is supplied to the connection's StartTransaction method. If TransactionLevel is unspecified (0), the dataset fetches its records or executes commands in the context of the most recently started transaction.

Note: Most applications do not need to use TransactionLevel because most database servers require that SQL commands belong to the most recently started transaction. However, the InterBase server allows multiple overlapping transactions to be active simultaneously.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!