RAD Studio VCL Reference
TADOConnection.BeginTrans Method

Initiates a new transaction in the associated database.

function BeginTrans: Integer;
__fastcall int BeginTrans();

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.


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