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

SQL Anywhere 11.0.1 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere .NET 2.0 API reference » iAnywhere.Data.SQLAnywhere namespace (.NET 2.0) » SACommand class


Transaction property

Specifies the SATransaction object in which the SACommand executes.

Visual Basic

Public Property Transaction As SATransaction

public SATransaction Transaction { get; set; }
Property value

The default value is a null reference. In Visual Basic, this is Nothing.


You cannot set the Transaction property if it is already set to a specific value and the command is executing. If you set the transaction property to an SATransaction object that is not connected to the same SAConnection object as the SACommand object, an exception will be thrown the next time you attempt to execute a statement.

For more information, see Transaction processing.

See also