CommandTypes

[!附註]

  下一版的 Microsoft SQL Server 將不再提供此功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。

Enumerates values for the CommandType property.

Constant

Description

cmdCreateAction

Defines one or more actions.

cmdCreateCellCalculation

Defines one or more calculated cells.

cmdCreateMember

Defines one or more calculated members.

cmdCreateSet

Defines one or more named sets of existing members.

cmdUnknown

Defines statements not included in any of the other command types in this table, such as DROP MEMBER statements or new statements that may be added to future versions.

cmdUseLibrary

Specifies DLLs that contain functions to be registered for use in Multidimensional Expressions (MDX) expressions. A user can write a DLL containing some special statistical functions, register this DLL with a USE LIBRARY command, and then run queries using these statistical functions.