CreateCommand()
- Last UpdatedNov 25, 2015
- 1 minute read
Use the CreateCommand() method to create a new aaDBCommand object.
Syntax
aaDBCommand CreateCommand(
string CommandText,
aaDBCommandType CommandType,
bool ReturnDataset)
Parameters
You can also configure the newly created object by adding parameters and then executing them.
The parameters are identified in the SQL statement by the at sign (@) character when ProviderType is SQL.
The following SQL statement has one parameter, lastName:
"SELECT * FROM Person.Contact WHERE (LastName > @lastName)"