Gets or sets the type of command represented by an SACommand.
Visual Basic Public Overrides Property CommandType As CommandType
C# public override CommandType CommandType { get; set; }
One of the
CommandType values. The default is
CommandType.Text.
Supported command types are as follows:
CommandType.StoredProcedure When you specify this CommandType, the command text must be the name of a stored procedure and you must supply any arguments
as SAParameter objects.
CommandType.Text This is the default value.
When the CommandType property is set to StoredProcedure, the CommandText property should be set to the name of the stored procedure. The command executes this stored procedure when you call one of the Execute methods.
Use a question mark (?) placeholder to pass parameters. For example:
SELECT * FROM Customers WHERE ID = ? |
The order in which SAParameter objects are added to the SAParameterCollection must directly correspond to the position of the question mark placeholder for the parameter.
| Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |