A MySqlCommand has the CommandText and
CommandType properties associated with it. The
CommandText will be handled differently
depending on the setting of CommandType.
CommandType can be one of:
Text - A SQL text command (default)
StoredProcedure - The name of a Stored Procedure
TableDirect - The name of a table (new in Connector/NET 6.2)
The default CommandType,
Text, is used for executing queries and other
SQL commands. Some example of this can be found in the following
section Section 21.2.4.1.2, “The MySqlCommand Object”.
If CommandType is set to
StoredProcedure, CommandText
should be set to the name of the Stored Procedure to access.
If CommandType is set to
TableDirect, all rows and columns of the named
table will be returned when you call one of the Execute methods.
Examples of using the CommandType of StoredProcedure can be found in the section Section 21.2.5.6.2, “Calling a Stored Procedure from Connector/NET”.


User Comments
Add your own comment.