Target Element (XMLA)

 

Applies To: SQL Server 2016 Preview

Represents the target partition to be merged during a MergePartitions command.

  
<MergePartitions>  
   <Target>  
      <DatabaseID>...</DatabaseID>  
      <CubeID>...</CubeID>  
      <MeasureGroupID>...</MeasureGroupID>  
      <PartitionID>...</PartitionID>  
   </Target>  
</MergePartitions>  

CharacteristicDescription
Data type and lengthNone
Default valueNone
Cardinality1-n: Required element that can occur more than once.
RelationshipElement
Parent elementsMergePartitions
Child elementsCubeID, DatabaseID, MeasureGroupID, PartitionID

The Target element is an object reference to a single partition into which the contents of the source partitions, specified by the Sources element of the parent MergePartitions element, are to be merged.

The following example combines all four partitions of the Internet Sales measure group into the Internet_Sales_2004 target partition. The example refers to the AdventureWorks2012 cube of the AdventureWorks2012 sample Analysis Services database.

<MergePartitions xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">  
  <Sources>  
     <Source>  
        <DatabaseID>database</DatabaseID>  
        <CubeID>Adventure Works DW</CubeID>  
        <MeasureGroupID>Fact Internet Sales 1</MeasureGroupID>  
        <PartitionID>Internet_Sales_2001</PartitionID>  
     </Source>  
     <Source>  
      <DatabaseID>database</DatabaseID>  
      <CubeID>Adventure Works DW</CubeID>  
      <MeasureGroupID>Fact Internet Sales 1</MeasureGroupID>  
      <PartitionID>Internet_Sales_2002</PartitionID>  
    </Source>  
    <Source>  
      <DatabaseID>database</DatabaseID>  
      <CubeID>Adventure Works DW</CubeID>  
      <MeasureGroupID>Fact Internet Sales 1</MeasureGroupID>  
      <PartitionID>Internet_Sales_2003</PartitionID>  
    </Source>  
  </Sources>  
  <Target>    <DatabaseID>database</DatabaseID>    <CubeID>Adventure Works DW</CubeID>    <MeasureGroupID>Fact Internet Sales 1</MeasureGroupID>    <PartitionID>Internet_Sales_2004</PartitionID>  </Target>  
</MergePartitions>  

Source Element (XMLA)
Properties (XMLA)

Community Additions

ADD
Show: