AdomdCommand.ExecuteNonQuery Method
Runs the AdomdCommand without returning any results.
命名空间: Microsoft.AnalysisServices.AdomdServer
程序集: msmgdsrv (in msmgdsrv.dll)
语法
声明
Public Function ExecuteNonQuery As Integer
public int ExecuteNonQuery ()
public:
virtual int ExecuteNonQuery () sealed
public final int ExecuteNonQuery ()
public final function ExecuteNonQuery () : int
返回值
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.
线程安全
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
平台
开发平台
有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。
目标平台
有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。
请参阅
参考
AdomdCommand Class
AdomdCommand Members
Microsoft.AnalysisServices.AdomdServer Namespace