Aracılığıyla paylaş


AdomdCommand.Prepare Method

Verifies that the AdomdCommand can run.

Namespace: Microsoft.AnalysisServices.AdomdClient
Assembly: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)

Syntax

'Declaration
Public Sub Prepare
public void Prepare ()
public:
virtual void Prepare () sealed
public final void Prepare ()
public final function Prepare ()

Exceptions

Exception type 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:

  • The AdomdConnection was not set.

  • The AdomdConnection was not opened.

  • Either the CommandText property or the CommandStream property was improperly set.

  • Both the CommandText property and the CommandStream property were set.

  • Neither the CommandText property, nor the CommandStream property, was set.

Thread Safety

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

AdomdCommand Class
AdomdCommand Members
Microsoft.AnalysisServices.AdomdClient Namespace