Navigation:  ThinBASIC Modules > ADODB > ADODB Module Classes > ADODB_Connection > ADODB_Connection Methods >

<ADODB_Connection>.BeginTrans

Previous pageReturn to chapter overviewNext page

 

Description

 

Starts a new transaction

 

Syntax

 

n = <ADODB_Connection>.BeginTrans

 

Returns

 

Number: level of nested transactions.

 

Parameters

 

Name

Type

Optional

Meaning





 

 

Remarks

 

This method can also be used to return a long value that is the level of nested transactions.

A top level transaction has a return value of 1. Each additional level increments by one.

 

Restrictions

 

See also

 

<ADODB_Connection>.BeginTrans, <ADODB_Connection>.CommitTrans, <ADODB_Connection>.RollBackTrans

 

Examples