Name (Command Interface)

[!附註]

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

The Name property of the Command interface contains the name of a command object. This property is the primary mechanism for identifying individual command objects.

Applies To:clsCubeCommand, clsDatabaseCommand, clsRoleCommand

Data Type

String

Access

Read/write (read-only after the object has been named)

備註

Within a cube, each command must have a unique name. For more information about naming conventions for Decision Support Objects (DSO) objects, see Considerations For Naming Decision Support Objects.

範例

Use the following code to print a command object's name in the immediate window:

'Assume a command object (dsoCmd) exists.
debug.print dsoCmd.Name

請參閱

參考