Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere .NET 2.0 API reference » iAnywhere.Data.SQLAnywhere namespace (.NET 2.0) » SAConnection class » BeginTransaction methods


BeginTransaction(SAIsolationLevel) method

Returns a transaction object. Commands associated with a transaction object are executed as a single transaction. The transaction is terminated with a call to the Commit or Rollback methods.

Visual Basic

Public Function BeginTransaction( _
   ByVal isolationLevel As SAIsolationLevel _
) As SATransaction

public SATransaction BeginTransaction(
   SAIsolationLevel isolationLevel
  • isolationLevel   A member of the SAIsolationLevel enumeration. The default value is ReadCommitted.

Return value

An SATransaction object representing the new transaction.

For more information, see Transaction processing.

For more information, see Typical types of inconsistency.


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

See also