Skip to content

Latest commit

 

History

History
100 lines (87 loc) · 4.08 KB

File metadata and controls

100 lines (87 loc) · 4.08 KB
title Target Element (XMLA) | Microsoft Docs
ms.custom
ms.date 03/06/2017
ms.prod sql-server-2016
ms.reviewer
ms.suite
ms.technology
analysis-services
docset-sql-devref
ms.tgt_pltfrm
ms.topic reference
apiname
Target Element
apilocation
apitype Schema
applies_to
SQL Server 2016 Preview
f1_keywords
microsoft.xml.analysis.target
urn:schemas-microsoft-com:xml-analysis#Target
helpviewer_keywords
Target element
ms.assetid 9a69a777-5f34-4e94-b470-6bab2a98df8b
caps.latest.revision 14
author jeannt
ms.author jeannt
manager erikre

Target Element (XMLA)

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

Syntax

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

Element Characteristics

Characteristic Description
Data type and length None
Default value None
Cardinality 1-n: Required element that can occur more than once.

Element Relationships

Relationship Element
Parent elements MergePartitions
Child elements CubeID, DatabaseID, MeasureGroupID, PartitionID

Remarks

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.

Example

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 [!INCLUDEssSampleDBnormal] cube of the [!INCLUDEssSampleDBnormal] sample [!INCLUDEssASnoversion] 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>  

See Also

Source Element (XMLA)
Properties (XMLA)