--- title: "Source 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: - "Source Element" apilocation: - "http://schemas.microsoft.com/analysisservices/2003/engine" apitype: "Schema" applies_to: - "SQL Server 2016 Preview" f1_keywords: - "urn:schemas-microsoft-com:xml-analysis#Source" - "http://schemas.microsoft.com/analysisservices/2003/engine#Source" - "microsoft.xml.analysis.source" helpviewer_keywords: - "Source element" ms.assetid: 4d4665ae-e20f-4baf-ab0f-848660caf500 caps.latest.revision: 17 author: "jeannt" ms.author: "jeannt" manager: "erikre" --- # Source Element (XMLA) Represents a source partition to be merged during a [MergePartitions](../../../analysis-services/xmla/xml-elements-commands/mergepartitions-element-xmla.md) command. ## Syntax ```xml ... ... ... ... ``` ## 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|[Sources](../../../analysis-services/xmla/xml-elements-properties/sources-element-xmla.md)| |Child elements|[CubeID](../../../analysis-services/xmla/xml-elements-properties/cubeid-element-xmla.md), [DatabaseID](../../../analysis-services/xmla/xml-elements-properties/databaseid-element-xmla.md), [MeasureGroupID](../../../analysis-services/xmla/xml-elements-properties/measuregroupid-element-xmla.md), [PartitionID](../../../analysis-services/xmla/xml-elements-properties/partitionid-element-xmla.md)| ## Remarks The **Source** element is an object reference to a single partition to be merged into a target partition specified by the **Target** element of the parent **MergePartitions** element. ## 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 **Adventure Works** cube of the [!INCLUDE[ssAWDWsp](../../../includes/ssawdwsp-md.md)] sample [!INCLUDE[ssASnoversion](../../../includes/ssasnoversion-md.md)] database. ``` Adventure Works DW Multidimensional 2012 Adventure Works Fact Internet Sales 1 Internet_Sales_2001 Adventure Works DW Multidimensional 2012 Adventure Works Fact Internet Sales 1 Internet_Sales_2002 Fact Internet Sales 1 Internet_Sales_2003 Adventure Works Fact Internet Sales 1 Internet_Sales_2004 ``` ## See Also [Target Element (XMLA)](../../../analysis-services/xmla/xml-elements-properties/target-element-xmla.md) [Properties (XMLA)](../../../analysis-services/xmla/xml-elements-properties/xml-elements-properties.md)