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

IDbCommand Interface

Represents a statement that is executed while an open connection to a data source exists.

Namespace:  Microsoft.ReportingServices.DataProcessing
Assemblies:   Microsoft.ReportingServices.Interfaces (in Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
public interface IDbCommand : IDisposable

The IDbCommand type exposes the following members.

  NameDescription
Public propertyCommandTextGets or sets the text command to run against the data source.
Public propertyCommandTimeoutGets or sets the wait time before terminating the attempt to execute a command and generating an error.
Public propertyCommandTypeIndicates or specifies how the CommandText property is interpreted (as text, a stored procedure, etc.).
Public propertyParametersGets the IDataParameterCollection.
Public propertyTransactionGets or sets the transaction in which the Command object of a SQL Server Reporting Services data provider executes.
Top
  NameDescription
Public methodCancelAttempts to cancel the execution of an IDbCommand.
Public methodCreateParameterCreates a new instance of an IDataParameter object.
Public methodDispose (Inherited from IDisposable.)
Public methodExecuteReaderExecutes the CommandText against the Connection and builds an IDataReader.
Top

The IDbCommand interface enables you to implement a Command class, which represents a statement that is executed at a data source. For more information about Command classes, see Implementing a Command Class for a Data Processing Extension.

An application does not create an instance of the IDbCommand interface directly, but creates an instance of a class that implements IDbCommand.

Classes that implement IDbCommand must also implement all required members, and typically define additional members to add provider-specific functionality.

When you implement from the IDbCommand interface, you should implement the following constructors:

Item

Description

PrvCommand()

Initializes a new instance of the PrvCommand class.

PrvCommand(string cmdText)

Initializes a new instance of the PrvCommand class with the text of the query.

PrvCommand(string cmdText, PrvTransaction transaction)

Initializes a new instance of the PrvCommand class with the text of the query, a PrvConnection, and the PrvTransaction.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.