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

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » SQL Anywhere .NET 2.0 API Reference » SACommand class

Parameters property Next Page

Transaction property


Specifies the SATransaction object in which the SACommand executes.

Syntax

Visual Basic

Public Property Transaction As SATransaction

C#

public SATransaction Transaction { get; set; }

Property value

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

Remarks

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