Name Property

SQL-NS

SQL-NS

Name Property

The Name property returns the descriptive string displayed in the namespace hierarchy of objects and commands.

Applies To
SQLNamespaceCommand Object SQLNamespaceObject Object
Syntax

object.Name

Parts

object

Expression that evaluates to an object in the Applies To list

Data Type

String

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetName(BSTR *pRetVal);

Remarks

In the case of the SQLNamespaceCommand object, Name returns the name of the command. The value of Name can then be used as the parameter for the ExecuteCommandByName method on the SQLNamespaceObject object. On the SQLNamespaceObject object, it returns the name of the object.