ObjectDefinition Element (XMLA)

Contains one or more Analysis Services Scripting Language (ASSL) elements, used to create or alter objects on an instance of Microsoft SQL Server Analysis Services.

语法

<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 Analysis Services objects. For more information about ASSL, see Analysis Services Scripting Language (ASSL).

备注

示例

The following example creates an empty database named Test Database on an Analysis Services instance.

      <Create xmlns="https://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>

请参阅

概念

Properties (XMLA)

帮助和信息

获取 SQL Server 2005 帮助