Skip to content

Latest commit

 

History

History
83 lines (69 loc) · 2.87 KB

File metadata and controls

83 lines (69 loc) · 2.87 KB
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
apitype Schema
applies_to
SQL Server 2016 Preview
f1_keywords
urn:schemas-microsoft-com:xml-analysis#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 [!INCLUDEmsCoName] [!INCLUDEssNoVersion] [!INCLUDEssASnoversion].

Syntax

  
<Create> <!-- or Alter -->  
   ...  
   <ObjectDefinition>  
      <!-- One or more ASSL elements -->  
   </ObjectDefinition>  
   ...  
</Create>  

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, Create
Child elements Required ASSL elements. One or more ASSL elements, used to define [!INCLUDEssASnoversion] objects. For more information about ASSL, see Properties (XMLA).

Remarks

Example

The following example creates an empty database named Test Database on an [!INCLUDEssASnoversion] instance.

  
      <Create xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">  
   <ObjectDefinition>  
      <Database xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">  
         <Name>Test Database</Name>  
         <Description>A test database.</Description>  
      </Database>  
   </ObjectDefinition>  
</Create>  

See Also

Properties (XMLA)