--- title: "DatabaseID 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: - "DatabaseID Element" apilocation: - "http://schemas.microsoft.com/analysisservices/2003/engine" apitype: "Schema" applies_to: - "SQL Server 2016 Preview" f1_keywords: - "microsoft.xml.analysis.databaseid" - "urn:schemas-microsoft-com:xml-analysis#DatabaseID" - "http://schemas.microsoft.com/analysisservices/2003/engine#DatabaseID" helpviewer_keywords: - "DatabaseID element" ms.assetid: 2df720dd-9b42-449a-9df6-0d12930603f0 caps.latest.revision: 13 author: "jeannt" ms.author: "jeannt" manager: "erikre" --- # DatabaseID Element (XMLA) Identifies a database within a parent element that contains an object reference. ## Syntax ```xml ... ... ... ``` ## Element Characteristics |Characteristic|Description| |--------------------|-----------------| |Data type and length|String| |Default value|None| |Cardinality|See the table below.| |Ancestor or Parent|Cardinality| |------------------------|-----------------| |[Source](../../../analysis-services/xmla/xml-elements-properties/source-element-xmla.md), [Target](../../../analysis-services/xmla/xml-elements-properties/target-element-xmla.md)|1-1: Required element that occurs once and only once.| |All others|0-1: Optional element that can occur once and only once.| ## Element Relationships |Relationship|Element| |------------------|-------------| |Parent elements|[Object](../../../analysis-services/xmla/xml-elements-properties/object-element-xmla.md), [ParentObject](../../../analysis-services/xmla/xml-elements-properties/parentobject-element-xmla.md), [Source](../../../analysis-services/xmla/xml-elements-properties/source-element-xmla.md), [Target](../../../analysis-services/xmla/xml-elements-properties/target-element-xmla.md)| |Child elements|None| ## Remarks ## See Also [Properties (XMLA)](../../../analysis-services/xmla/xml-elements-properties/xml-elements-properties.md)