다음을 통해 공유


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).

구현

IDbCommand. . :: . .ExecuteNonQuery() () () ()

예외

예외 조건
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.