Partilhar via


Name (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.

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)

Remarks

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.

Example

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

See Also

Reference

Command Interface

Help and Information

Getting SQL Server 2005 Assistance