다음을 통해 공유


Commands Collection

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

A Command object encapsulates a user-defined command or sequence of commands that are automatically executed on the Microsoft® SQL Server™ 2000 Analysis Services client when the user accesses the cube or database. Such commands can include calculated members, named sets, library references, and so on.

Each of the following objects contains a Commands collection:

  • clsCube
  • clsMiningModelRole
  • clsCubeRole
  • clsDatabaseRole

Each Commands collection contains command objects of the same class type. The ContainedClassType property of a Commands collection specifies the class type of the contained objects.

Class type Contained class type

clsCube

clsCubeCommand

clsCubeRole

clsCubeCommand

clsDatabaseRole

clsDatabaseCommand

주의

The relative position of commands within a Commands collection determines the order in which the commands are executed. This is important because it is possible to write commands that depend on previous commands in the collection. For example, a named set can contain a previously defined calculated member.

As with other Decision Support Objects (DSO) collections, the Add, AddNew, Find, and Remove methods of Commands collections maintain all necessary parent-child relationships among the objects in the object model.

[!참고]   The Commands collection of objects of ClassType clsDatabase is reserved for future use.

참고 항목

참조

Collections (DSO)
Methods, clsCollection
Properties, clsCollection

도움말 및 정보

SQL Server 2005 지원 받기