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


CreateParameter method

Provides an SAParameter object for supplying parameters to SACommand objects.

Visual Basic

Public Function CreateParameter() As SAParameter

public SAParameter CreateParameter();
Return value

A new parameter, as an SAParameter object.


Stored procedures and some other SQL statements can take parameters, indicated in the text of a statement by a question mark (?).

The CreateParameter method provides an SAParameter object. You can set properties on the SAParameter to specify the value, data type, and so on for the parameter.

See also