共用方式為


2.2.4.2.2.1 MajorObject

The MajorObject complex type represents a choice between the objects that can be created or altered directly with a Create command or an Alter command. Any of the elements that are available within the xsd:choice element for MajorObject are referred to as "major objects" throughout this document.

   <xsd:complexType name="MajorObject">
     <xsd:choice>
       <xsd:element name="AggregationDesign" type="AggregationDesign"/>
       <xsd:element name="Assembly" type="Assembly"/>
       <xsd:element name="Cube" type="Cube"/>
       <xsd:element name="Database" type="Database"/>
       <xsd:element name="DataSource" type="DataSource"/>
       <xsd:element name="DataSourceView" type="DataSourceView"/>
       <xsd:element name="Dimension" type="Dimension"/>
       <xsd:element name="MdxScript" type="MdxScript"/>
       <xsd:element name="MeasureGroup" type="MeasureGroup"/>
       <xsd:element name="MiningModel" type="MiningModel"/>
       <xsd:element name="MiningStructure" type="MiningStructure"/>
       <xsd:element name="Partition" type="Partition"/>
       <xsd:element name="Permission" type="Permission"/>
       <xsd:element name="Perspective" type="Perspective"/>
       <xsd:element name="Role" type="Role"/>
       <xsd:element name="Server" type="Server"/>
       <xsd:element name="Trace" type="Trace"/>
     </xsd:choice>
   </xsd:complexType>
  

The following table specifies the elements that are included within the xsd:choice XSD schema element for MajorObject.

Element

Section 

Description

AggregationDesign

2.2.4.2.2.12

A complex type that specifies a group of aggregations for a measure group.

Assembly

2.2.4.2.2.3

A complex type that specifies a function library containing functions that are accessible by queries and scripts.

Cube

2.2.4.2.2.9

A complex type that specifies a cube.

Database

2.2.4.2.2.5

A complex type that specifies a database object.

DataSource

2.2.4.2.2.6

A complex type that represents a source of data that is available to a database.

DataSourceView

2.2.4.2.2.7

A complex type that specifies a view over the schema of a data source.

Dimension

2.2.4.2.2.8

A complex type that specifies a dimensions object.

MdxScript

2.2.4.2.2.10

A complex type that specifies a script defined in the Multidimensional Expressions (MDX) language that contains calculation definition.

MeasureGroup

2.2.4.2.2.11

A complex type that specifies a MeasureGroup object for a cube.

MiningModel

2.2.4.2.2.16

A complex type that specifies a mining model.

MiningStructure

2.2.4.2.2.15

A complex type that specifies a mining structure.

Partition

2.2.4.2.2.13

A complex type that specifies a partition of a measure group.

Permission

2.2.4.2.2.21

A complex type that specifies a set of permissions assigned to a role.

Perspective

2.2.4.2.2.14

A complex type that specifies a Perspective object for a cube.

Role

2.2.4.2.2.28

A complex type that specifies a role to which permissions can be assigned.

Server

2.2.4.2.2.2

A complex type that specifies a server instance.

Trace

2.2.4.2.2.4

A complex type that represents a trace object. A trace is a set of server events that can be subscribed to by a client.

The following elements are common to all elements that are within the xsd:choice element for MajorObject. To avoid repetition, this table is not repeated for each element within xsd:choice.

Element

Read-Only

Default value

Description

Name

[Required]

The object name.

ID

Defaults to Name.

The object ID string.

CreatedTimestamp

Yes

A timestamp for the time that the object was created.

LastSchemaUpdate

Yes

A timestamp for the time that the schema was last updated.

Description

Empty

The object description.

Annotations

Empty

A collection of Annotation objects.