Export (0) Print
Expand All

AdomdCommand.ExecuteReader Method

 

Executes the CommandText against the AdomdConnection and builds the AdomdDataReader.

Namespace:   Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (in Microsoft.AnalysisServices.AdomdClient.dll)

NameDescription
System_CAPS_pubmethodExecuteReader()

Runs the AdomdCommand and returns an AdomdDataReader.

System_CAPS_pubmethodExecuteReader(CommandBehavior)

Runs the AdomdCommand using the specified System.Data.CommandBehaviorenumeration value and returns an AdomdDataReader.

Return to top

AdomdCommand.ExecuteReader Method ()

Runs the AdomdCommand and returns an AdomdDataReader.

public AdomdDataReader ExecuteReader()

Exception Condition
AdomdErrorResponseException

The provider returned an error in response.

AdomdUnknownResponseException

The provider sent an unrecognizable response.

AdomdConnectionException

The connection was broken.

System.InvalidOperationException

An error occurred because one of the following conditions was met:

While the AdomdDataReader is in use, the AdomdCommand and the associated AdomdConnection are busy serving the AdomdDataReader. While in this state, the AdomdConnection or AdomdCommand can only be closed; no other operations can be performed on them. This remains the case until the Close or Dispose method of the AdomdDataReader is called.

Return to top

AdomdCommand.ExecuteReader Method (CommandBehavior)

Runs the AdomdCommand using the specified System.Data.CommandBehaviorenumeration value and returns an AdomdDataReader.

public AdomdDataReader ExecuteReader(
	CommandBehavior behavior
)

Parameters

behavior
Type: System.Data.CommandBehavior

A System.Data.CommandBehaviorenumeration value that indicates the behavior of the AdomdCommand during or after the command runs.

The values CommandBehavior.KeyInfo and CommandBehavior.SingleResult are not supported, and are ignored.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft