Data.Win.ADODB.TADOConnection.BeginTrans
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: Data.Win.ADODB.pas Data.Win.ADODB.hpp
| |
| Unit: Data.Win.ADODB | |
| Parent: TADOConnection | |
Delphi
function BeginTrans: Integer;
C++
int __fastcall BeginTrans();
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.