AdomdCommand.ExecuteReader Method ()

Runs the AdomdCommand and returns an AdomdDataReader.

네임스페이스: Microsoft.AnalysisServices.AdomdServer
어셈블리: msmgdsrv (in msmgdsrv.dll)

구문

‘선언
Public Function ExecuteReader As AdomdDataReader
public AdomdDataReader ExecuteReader ()
public:
virtual AdomdDataReader^ ExecuteReader () sealed
public final AdomdDataReader ExecuteReader ()
public final function ExecuteReader () : AdomdDataReader

반환 값

An AdomdDataReader.

예외

예외 유형 상태
AdomdErrorResponseException

The provider returned an error in response.

AdomdUnknownResponseException

The provider sent an unrecognizable response.

System:InvalidOperationException

The CommandText property was improperly set

주의

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.

스레드 보안

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.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

AdomdCommand Class
AdomdCommand Members
Microsoft.AnalysisServices.AdomdServer Namespace