Advanced.Data.Provider Documentation

AdpCommand Members

[This is preliminary documentation and subject to change.]

AdpCommand overview

Public Instance Constructors

AdpCommandOverloaded. Initializes a new instance of the AdpCommand class.

Public Instance Properties

CommandText Gets or sets the Transact-SQL statement or stored procedure to execute at the data source.
CommandTimeout Gets or sets the wait time before terminating the attempt to execute a command and generating an error.
CommandType Gets or sets a value indicating how the CommandText property is to be interpreted.
Connection Gets or sets the AdpConnection used by this instance of the AdpCommand.
Parameters Gets the AdpParameterCollection.
Provider Gets the AdpProvider used by this instance of the AdpCommand.
Transaction Gets or sets the AdpTransaction within which the AdpCommand executes.
UpdatedRowSource Gets or sets how command results are applied to the DataRow when used by the Update method of the AdpDataAdapter.

Public Instance Methods

Cancel Attempts to cancel the execution of a AdpCommand.
CreateParameterOverloaded. Creates a new instance of a AdpParameter object.
Dispose Releases the resources used by the AdpCommand.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
ExecuteDataSetOverloaded. Executes a Transact-SQL statement defined in CommandText property of AdpCommand and returns a DataSet object.
ExecuteDataTableOverloaded. Executes a Transact-SQL statement defined in CommandText property of AdpCommand and returns a DataTable object.
ExecuteNonQuery Executes a Transact-SQL statement against the connection and returns the number of rows affected.
ExecuteReaderOverloaded. Sends the CommandText to the Connection and builds a AdpDataReader using one of the CommandBehavior values.
ExecuteScalar Executes the query, and returns the first column of the first row in the result set returned by the query. Extra columns or rows are ignored.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
Prepare Creates a prepared version of the command on an instance of database server.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

AdpCommand Class | Advanced.Data.Provider Namespace