BeginTrans Method

Applies To

ODatabase

Description

Begins a database transaction within the specified session.

Usage

oresult BeginTrans(void) const

Arguments

none

Remarks

After this method has been called, no database transactions are committed until a CommitTrans is issued. Alternatively, the session can be rolled back using Rollback. If a transaction has already been started, repeated use of BeginTrans causes an error.

Contents