Name (Command Interface)

ms135501.note(zh-cn,SQL.90).gif注意:
  下一版本的 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

请参阅

参考

Command Interface

帮助和信息

获取 SQL Server 2005 帮助