Name (Dimension Interface)

ms133441.note(zh-cn,SQL.90).gif注意:
  下一版本的 Microsoft SQL Server 将删除该功能。请不要在新的开发工作中使用该功能,并尽快修改当前还在使用该功能的应用程序。

The Name property of the Dimension interface contains the name of a dimension object.

Applies To:clsAggregationDimension, clsCubeDimension, clsDatabaseDimension, clsPartitionDimension

Data Type

String

Access

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

备注

The primary mechanism for identifying the data in a dimension is the Name property. The purpose of the Description property is to provide additional descriptive information.

示例

Use the following code to print the names of the dimensions in a database:

'Assume an object (dsoDB) of ClassType clsDatabase exists.
Dim dsoDim As DSO.Dimension
Dim dimCounter As Integer
For dimCounter = 1 To dsoDB.Dimensions.Count
    Set dsoDim = dsoDB.Dimensions(dimCounter)
    Debug.Print dsoDim.Name 
Next dimCounter

请参阅

参考

Dimension Interface
Description (Dimension Interface)
IsShared (Dimension Interface)
IsTemporary (Dimension Interface)

帮助和信息

获取 SQL Server 2005 帮助