RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TADOConnection.BeginTrans Method

Initiates a new transaction in the associated database.

Pascal
function BeginTrans: Integer;
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!