Compartir a través de


AdomdCommand.ExecuteReader Method ()

Runs the AdomdCommand and returns an AdomdDataReader.

Espacio de nombres: Microsoft.AnalysisServices.AdomdServer
Ensamblado: msmgdsrv (in msmgdsrv.dll)

Sintaxis

'Declaración
Public Function ExecuteReader As AdomdDataReader
public AdomdDataReader ExecuteReader ()
public:
virtual AdomdDataReader^ ExecuteReader () sealed
public final AdomdDataReader ExecuteReader ()
public final function ExecuteReader () : AdomdDataReader

Valor devuelto

An AdomdDataReader.

Excepciones

Tipo de excepción Condición
AdomdErrorResponseException

The provider returned an error in response.

AdomdUnknownResponseException

The provider sent an unrecognizable response.

System:InvalidOperationException

The CommandText property was improperly set

Notas

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.

Seguridad para subprocesos

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

AdomdCommand Class
AdomdCommand Members
Microsoft.AnalysisServices.AdomdServer Namespace