--- title: "ObjectDefinition Element (XMLA) | Microsoft Docs" ms.custom: "" ms.date: "03/14/2017" ms.prod: "sql-server-2016" ms.reviewer: "" ms.suite: "" ms.technology: - "analysis-services" - "docset-sql-devref" ms.tgt_pltfrm: "" ms.topic: "reference" apiname: - "ObjectDefinition 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#ObjectDefinition" - "http://schemas.microsoft.com/analysisservices/2003/engine#ObjectDefinition" - "microsoft.xml.analysis.objectdefinition" helpviewer_keywords: - "ObjectDefinition element" ms.assetid: 1911868c-a018-4308-8cf9-972a57f610a1 caps.latest.revision: 13 author: "jeannt" ms.author: "jeannt" manager: "erikre" --- # ObjectDefinition Element (XMLA) Contains one or more Analysis Services Scripting Language (ASSL) elements, used to create or alter objects on an instance of [!INCLUDE[msCoName](../../../includes/msconame-md.md)] [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] [!INCLUDE[ssASnoversion](../../../includes/ssasnoversion-md.md)]. ## Syntax ```xml ... ... ``` ## Element Characteristics |Characteristic|Description| |--------------------|-----------------| |Data type and length|None| |Default value|None| |Cardinality|0-1: Optional element that can occur once and only once.| ## Element Relationships |Relationship|Element| |------------------|-------------| |Parent elements|[Alter](../../../analysis-services/xmla/xml-elements-commands/alter-element-xmla.md), [Create](../../../analysis-services/xmla/xml-elements-commands/create-element-xmla.md)| |Child elements|Required ASSL elements. One or more ASSL elements, used to define [!INCLUDE[ssASnoversion](../../../includes/ssasnoversion-md.md)] objects. For more information about ASSL, see [Properties (XMLA)](../../../analysis-services/xmla/xml-elements-properties/xml-elements-properties.md).| ## Remarks ## Example The following example creates an empty database named **Test Database** on an [!INCLUDE[ssASnoversion](../../../includes/ssasnoversion-md.md)] instance. ``` Test Database A test database. ``` ## See Also [Properties (XMLA)](../../../analysis-services/xmla/xml-elements-properties/xml-elements-properties.md)