AdomdCommand.ExecuteNonQuery 方法
Runs the AdomdCommand without returning any results.
命名空間: Microsoft.AnalysisServices.AdomdClient
組件: Microsoft.AnalysisServices.AdomdClient (在 Microsoft.AnalysisServices.AdomdClient.dll 中)
語法
'宣告
Public Function ExecuteNonQuery As Integer
'用途
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
傳回值
型別:System.Int32
A value of one (1).
實作
例外狀況
例外狀況 | 條件 |
---|---|
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:
|
備註
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.