FromClause (Level Interface)

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

The FromClause property of the Level interface contains the SQL FROM clause for the level.

Applies To:clsAggregationLevel, clsCubeLevel, clsDatabaseLevel, clsPartitionLevel

Data Type

String

Access

Read-only

备注

This property returns a table name that is the same value as the SourceTable property of the parent dimension object.

示例

A database contains the following tables:

  • Sales_Facts
  • Customer
  • Product
  • Product_Class
  • Promotion
  • Store
  • Calendar

This diagram illustrates the relationships of these tables.

Use the following code to print the FROM clause for a level object:

' Assume an object (dsoLevel) of ClassType clsLevel
' and is associated with the Store dimension and 
' Store_Name level
Debug.Print "        Level: " & dsoLevel.Name
Debug.Print "  From Clause: " & dsoLevel.FromClause

The immediate window displays the following:

        Level: Store_Name
  From Clause: "store"

请参阅

参考

Level Interface

帮助和信息

获取 SQL Server 2005 帮助