Export (0) Print
Expand All

AdomdCommand.ExecuteNonQuery Method

Runs the AdomdCommand without returning any results.

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

public int ExecuteNonQuery()

Return Value

Type: Int32
A value of one (1).

Implements

IDbCommandExecuteNonQuery

ExceptionCondition
AdomdErrorResponseException

The provider returned an error in response.

AdomdUnknownResponseException

The provider sent an unrecognizable response.

AdomdConnectionException

The connection was broken.

InvalidOperationException

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

You can use the ExecuteNonQuery method to run commands that typically do not return a CellSet, such as data definition language (DDL) commands or writeback commands.

Community Additions

ADD
Show:
© 2014 Microsoft