更新: 2009-04-30

This Transact-SQL procedure creates label-based hierarchy tables for all hierarchies associated with a specified dimension.


[ @RC = ] dbo.bsp_DI_CreateHierarchyLabelTableForDimension
@DimensionName = N'model_site_label:dimension_label' ,
[,[@IncludeExistingData = ] N'T' | N'F']


  • **@DimensionName** = N'model_site_label:dimension_label'
    The fully qualified name of the dimension. model_site_label:dimension_label is nvarchar(128). It has no default.
  • [ **@IncludeExistingData** = ] N'T' | N'F'
    Indicates whether to include existing data in the table. T or F is nchar(1). The default is 'T'.

Return Value

Returns int value for an error code.


To run this procedure, you must have the fixed database roles of db_datareader and db_datawriter. You must also have explicit execute permissions on the database object.


This example shows the creation of label-based hierarchy tables that are associated with the dimension, D_Entity.The stored procedure, bsp_CreateHierarchyLabelTableForDimension, creates the following label-based tables:

  • H_Entity_CorpMgmtEnt_Label

  • H_Entity_DetailEnt_Label

  • H_Entity_LegalEnt_Label

  • H_Entity_MfgEnt_Label

  • H_Entity_ResortEnt_Label

USE [Alpine_Ski_House_StagingDB]
DECLARE @return_value INT
EXEC @return_value = [dbo].[bsp_DI_CreateHierarchyLabelTableForDimension]
     @DimensionName = N'ASH_Corporate:Entity',
     @IncludeExistingData = N'T'
SELECT 'Return Value' = @return_value

Download this book

This topic is included in the following downloadable book for easier reading and printing:

See the full list of available books at Downloadable content for PerformancePoint Planning Server.