ExecuteNonQuery 方法
Runs the AdomdCommand without returning any results.
命名空间: Microsoft.AnalysisServices.AdomdServer
程序集: msmgdsrv(在 msmgdsrv.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. |
System..::..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.