AseCommand Class

Represents commands performed on the Adaptive Server and encapsulates either dynamic SQL statements or stored procedures.

It provides methods to execute commands on the Adaptive Server Database:

  • ExecuteNonQuery – Execute command that does not return a resultset

  • ExecuteScalar – Execute command that does not return a resultset

  • ExecuteReader – Execute command that returns a single value

  • ExecuteXmlReader – Execute command that returns XML

Base Classes

Component

Implements

IDbCommand, IDisposable
Note: If you are calling a stored procedure that takes parameters, you must specify the parameters for the stored procedure.
Related concepts
Use AseCommand to Retrieve and Manipulate Data
Stored Procedures
AseParameter Class