Data.Win.ADODB.TADOConnection.InTransaction
Delphi
property InTransaction: Boolean read GetInTransaction;
C++
__property bool InTransaction = {read=GetInTransaction, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Data.Win.ADODB.pas Data.Win.ADODB.hpp |
Data.Win.ADODB | TADOConnection |
Description
Indicates whether a transaction is in progress.
Read InTransaction at runtime to determine whether a transaction is currently active for the ADO connection component. If the connection component is currently in a transaction, InTransaction contains a true value. If no transaction is currently active it contains false.
A transaction is will be active if the BeginTrans method has been called to initiate a transaction but that transaction has not either been consummated by calling CommitTrans or canceled by calling the RollbackTrans method. Use the InTransaction property to prevent calling BeginTrans when a transaction has already been initiated for the connection component.