CommandType Property

The type of command represented by an AseCommand.

Syntax

CommandType CommandType

Access

Read-write

Implements

IDbCommand.CommandType

Usage

Supported command types are as follows:

  • CommandType.StoredProcedure – specify this CommandType, the command text must be the name of a stored procedure and you must supply any arguments as AseParameter objects.

  • CommandType.Text – 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.