다음을 통해 공유


Command Interface

[!참고]   이 기능은 다음 버전의 Microsoft SQL Server에서 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 가능한 한 빨리 수정하십시오.

In Decision Support Objects (DSO), certain objects can contain a series of user-defined commands that are automatically executed on the client when you access the object. These commands can include expressions written in Multidimensional Expressions (MDX) that define calculated members, named sets, library references, and other commands.

The objects that implement the Command interface, CubeCommand, DBCommand, and RoleCommand, have a ClassType property value of clsCubeCommand, clsDatabaseCommand, or clsRoleCommand respectively. The Command interface provides collections, methods, and properties to manipulate these objects.

Applies To:clsCubeCommand, clsDatabaseCommand, clsRoleCommand

Collections

The Command interface contains the following collection.

Collection Description

CustomProperties

The collection of user-defined properties for the command object

Methods

The Command interface contains the following methods.

Method Description

Clone

Copies an existing object to a target object of the same class type

LockObject

Locks an object

UnlockObject

Unlocks a previously locked object

Update

Saves the definition of the command object in the metadata repository

Properties

The Command interface supports the following properties.

Property Description

ClassType

Returns an enumeration constant that identifies the specific class type

CommandType

Returns an enumeration constant that identifies the command's use

Description

Sets or returns the description of the command object

IsValid

Indicates whether the Name and Statement properties are empty and whether the command object belongs to a collection

Name

Sets or returns the name of the command object

OrdinalPosition

Returns the ordinal position of the command object in the Commands collection of the parent MDStore object

Parent

Returns a reference to the parent MDStore object

ParentObject

Returns a reference to the parent object of which this object is a child

Statement

Sets or returns the text of the command statement

SubClassType

Returns an enumeration constant that identifies the subclass type of the object

참고 항목

관련 자료

Commands

도움말 및 정보

SQL Server 2005 지원 받기