[Reference] TADOConnection.BeginTrans
Data.Win.ADODB.TADOConnection.BeginTrans
Delphi
function BeginTrans: Integer;
C++
int __fastcall BeginTrans(void);
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.
연결된 데이터베이스에 새 트랜잭션을 시작합니다.
BeginTrans 메서드를 호출하면 ADO 연결 구성 요소가 연결된 데이터 저장소에서 새 트랜잭션을 시작합니다.
BeginTrans 는 새 트랜잭션의 중첩 수준을 나타내는 integer 형의 값을 돌려줍니다.
BeginTrans 를 성공적으로 실행하면 OnBeginTransComplete 이벤트가 발생하고 InTransaction 속성이 true로 설정됩니다.
참고 : BeginTrans 를 사용하려면 그 전에 ADO 연결 개체의 연결 상태가 활성화 되어 있어야 합니다.
출처: http://docwiki.embarcadero.com/Libraries/Berlin/en/Data.Win.ADODB.TADOConnection.BeginTrans