Поделиться через


AdomdCommand.ExecuteNonQuery Method

Runs the AdomdCommand without returning any results.

Пространство имен: Microsoft.AnalysisServices.AdomdClient
Сборка: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.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.

AdomdConnectionException

The connection was broken.

System.InvalidOperationException

An error occurred because one of the following conditions was met:

  • The connection was not set.

  • The connection was not opened.

  • Either the CommandText property or the CommandStream property was improperly set.

  • Both the CommandText property and the CommandStream property were set.

  • Neither the CommandText property, nor the CommandStream property, was 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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

AdomdCommand Class
AdomdCommand Members
Microsoft.AnalysisServices.AdomdClient Namespace