Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IDbCommand Methods

The IDbCommand type exposes the following members.

Public method Cancel Attempts to cancels the execution of an IDbCommand.
Public method CreateParameter Creates a new instance of an IDbDataParameter object.
Public method Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public method ExecuteNonQuery Executes an SQL statement against the Connection object of a .NET Framework data provider, and returns the number of rows affected.
Public method ExecuteReader() Executes the CommandText against the Connection and builds an IDataReader.
Public method ExecuteReader(CommandBehavior) Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehavior values.
Public method ExecuteScalar Executes the query, and returns the first column of the first row in the resultset returned by the query. Extra columns or rows are ignored.
Public method Prepare Creates a prepared (or compiled) version of the command on the data source.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.