AdomdCommand.ExecuteNonQuery Method

Runs the AdomdCommand without returning any results.

Namespace:  Microsoft.AnalysisServices.AdomdServer
Assembly:  msmgdsrv (in msmgdsrv.dll)

public int ExecuteNonQuery()

Return Value

Type: Int32
A value of one (1).

Implements

IDbCommandExecuteNonQuery

ExceptionCondition
InvalidOperationException

The CommandText property was improperly set.

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

Show: