Contents Index AsaConnection constructors ChangeDatabase method

ASA Programming Guide
  Adaptive Server Anywhere .NET Data Provider API Reference
    AsaConnection class

BeginTransaction method


Description 

Returns a transaction object. Commands associated with a transaction object are executed as a single transaction. The transaction is terminated with a Commit() or Rollback().

Syntax 1 

AsaTransaction BeginTransaction( )

Syntax 2 

AsaTransaction BeginTransaction( IsolationLevel isolationLevel )

Parameters 

isolationLevel    A member of the IsolationLevel enumeration. The default value is ReadCommitted.

Return value 

An object representing the new transaction.

Usage 

To associate a command with a transaction object, use the AsaCommand.Transaction property.

Example 
AsaTransaction tx = conn.BeginTransaction(
    IsolationLevel.ReadUncommitted );
See also 

Commit method

Rollback method

Transaction processing

Typical types of inconsistency


Contents Index AsaConnection constructors ChangeDatabase method