Data.Win.ADODB.TADOConnection.Attributes
Delphi
property Attributes: TXactAttributes read GetAttributes write SetAttributes default [];
C++
__property TXactAttributes Attributes = {read=GetAttributes, write=SetAttributes, default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Data.Win.ADODB.pas Data.Win.ADODB.hpp |
Data.Win.ADODB | TADOConnection |
Description
Specifies automated transaction behavior.
Set Attributes to specify whether a connection object performs retaining commits or retaining aborts. The two behaviors are independent of each other.
Attributes can contain one of the two TXactAttribute values (xaCommitRetaining and xaAbortRetaining), both values, or neither value.
ADOConnection1.Attributes := [xaCommitRetaining, xaAbortRetaining];
ADOConnection1->Attributes = TXactAttributes() << xaCommitRetaining << xaAbortRetaining;