Command Interface
Note
This feature will be removed in the next version of Microsoft SQL Server. Do not use this feature in new development work, and modify applications that currently use this feature as soon as possible.
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 |
---|---|
The collection of user-defined properties for the command object |
Methods
The Command interface contains the following methods.
Method | Description |
---|---|
Copies an existing object to a target object of the same class type |
|
Locks an object |
|
Unlocks a previously locked object |
|
Saves the definition of the command object in the metadata repository |
Properties
The Command interface supports the following properties.
Property | Description |
---|---|
Returns an enumeration constant that identifies the specific class type |
|
Returns an enumeration constant that identifies the command's use |
|
Sets or returns the description of the command object |
|
Indicates whether the Name and Statement properties are empty and whether the command object belongs to a collection |
|
Sets or returns the name of the command object |
|
Returns the ordinal position of the command object in the Commands collection of the parent MDStore object |
|
Returns a reference to the parent MDStore object |
|
Returns a reference to the parent object of which this object is a child |
|
Sets or returns the text of the command statement |
|
Returns an enumeration constant that identifies the subclass type of the object |