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

Cancel method Next Page

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