Méthode AdomdCommand.ExecuteNonQuery
Runs the AdomdCommand without returning any results.
Espace de noms : Microsoft.AnalysisServices.AdomdClient
Assembly : Microsoft.AnalysisServices.AdomdClient (en Microsoft.AnalysisServices.AdomdClient.dll)
Syntaxe
'Déclaration
Public Function ExecuteNonQuery As Integer
'Utilisation
Dim instance As AdomdCommand
Dim returnValue As Integer
returnValue = instance.ExecuteNonQuery()
public int ExecuteNonQuery()
public:
virtual int ExecuteNonQuery() sealed
abstract ExecuteNonQuery : unit -> int
override ExecuteNonQuery : unit -> int
public final function ExecuteNonQuery() : int
Valeur de retour
Type : System.Int32
A value of one (1).
Implémente
Exceptions
Exception | 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:
|
Notes
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.