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

SQL Anywhere 11.0.0 » 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 » SACommand constructors

 

SACommand(String, SAConnection, SATransaction) constructor

A SQL statement or stored procedure that is executed against a SQL Anywhere database.

Syntax
Visual Basic

Public Sub New( _
   ByVal cmdText As String, _
   ByVal connection As SAConnection, _
   ByVal transaction As SATransaction _
)
C#

public  SACommand(
   string  cmdText,
   SAConnection connection,
   SATransaction transaction
);
Parameters
  • cmdText   The text of the SQL statement or stored procedure. For parameterized statements, use a question mark (?) placeholder to pass parameters.

  • connection   The current connection.

  • transaction   The SATransaction object in which the SAConnection executes.

See also