Data.Win.ADODB.TADOConnection.BeginTrans
Delphi
function BeginTrans: Integer;
C++
int __fastcall BeginTrans();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.Win.ADODB.pas Data.Win.ADODB.hpp |
Data.Win.ADODB | TADOConnection |
Description
Initiates a new transaction in the associated database.
Call BeginTrans to start a new transaction in the data store the ADO connection component is connected to.
BeginTrans returns a value of type integer, indicating the nesting level of the new transaction.
A successful execution of BeginTrans triggers an OnBeginTransComplete event and sets the InTransaction property to true.
Note: The ADO connection object must have an active connection before BeginTrans can be used.