共用方式為


CubeAttribute 資料類型 (ASSL)

定義代表與 Cube 元素相關聯之屬性的基本資料類型。

語法

<CubeAttribute>
   <AttributeID>...</AttributeID>
   <AggregationUsage>...</AggregationUsage>
   <AttributeHierarchyOptimizedState>...</AttributeHierarchyOptimizedState>
   <AttributeHierarchyEnabled>...</AttributeHierarchyEnabled>
   <AttributeHierarchyVisible>...</AttributeHierarchyVisible>
   <Annotations>...</Annotations>
</CubeAttribute>

資料類型特性

特性

說明

基底資料類型

衍生資料類型

資料類型關聯性

關聯性

元素

父元素

子元素

AggregationUsageAnnotationsAttributeHierarchyEnabledAttributeHierarchyOptimizedStateAttributeHierarchyVisibleAttributeID

衍生的元素

Attribute (CubeDimensionAttributes 集合)

備註

在 DeploymentMode 組態屬性值 1 或 2 (SharePoint 或表格式模式,用來執行 PowerPivot 和表格式模型資料庫) 中執行服務時,不支援 AttributeHierarchyOptimizedState 元素。

當 AtttributeHierarchyEnabled 屬性設為 FALSE,而且執行個體是在 DeploymentMode 1 或 2 (SharePoint 或表格式伺服器模式) 下運作時,不得將屬性當做階層層級加入。

未明確包含在 Attributes 集合中之 CubeDimension 元素的屬性會成為集合的一部分而且會將預設值指派給它們。 將屬性加入至集合之後,Discover 方法可以傳回這些屬性。

AggregationUsage 元素會控制 Microsoft SQL Server Analysis Services 如何自動設計屬性的彙總。 AggregationUsage 元素不會限制手動針對 Cube 建立的任何彙總。

在「分析管理物件」(AMO) 物件模型中的對應元素是 CubeAttribute

請參閱

參考

Analysis Services 指令碼語言 XML 資料類型 (ASSL)