DISCOVER_XML_METADATA Rowset

 

Applies To: SQL Server 2016 Preview

Returns an XML document describing a requested object. The rowset that is returned always consists of one row and one column.

If you call the Discover method with the DISCOVER_XML_METATDATA enumeration value in the RequestType element, the Discover method returns the DISCOVER_XML_METATDATA rowset.

The DISCOVER_XML_METADATA rowset contains the following column.

Column nameType indicatorLengthDescription
METADATADBTYPE_WSTRAn XML document that describes the object requested by the restriction.

This schema rowset is not sorted.

System_CAPS_ICON_important.jpg Important


The DISCOVER_XML_METADATA rowset cannot be queried using the SELECT command syntax. However, the DISCOVER_XML_METADATA rowset can be queried using GetSchemaDataSet.

The DISCOVER_XML_METADATA rowset can be restricted on the columns listed in the following table.

Column nameType indicatorRestriction State
DatabaseIDDBTYPE_WSTROptional.
DimensionIDDBTYPE_WSTROptional.
CubeIDDBTYPE_WSTROptional.
MeasureGroupIDDBTYPE_WSTROptional.
PartitionIDDBTYPE_WSTROptional.
PerspectiveIDDBTYPE_WSTROptional.
DimensionPermissionIDDBTYPE_WSTROptional.
RoleIDDBTYPE_WSTROptional.
DatabasePermissionIDDBTYPE_WSTROptional.
MiningModelIDDBTYPE_WSTROptional.
MiningModelPermissionIDDBTYPE_WSTROptional.
DataSourceIDDBTYPE_WSTROptional.
MiningStructureIDDBTYPE_WSTROptional.
AggregationDesignIDDBTYPE_WSTROptional.
TraceIDDBTYPE_WSTROptional.
MiningStructurePermissionIDDBTYPE_WSTROptional.
CubePermissionIDDBTYPE_WSTROptional.
AssemblyIDDBTYPE_WSTROptional.
MdxScriptIDDBTYPE_WSTROptional.
DataSourceViewIDDBTYPE_WSTROptional.
DataSourcePermissionIDDBTYPE_WSTROptional.
ObjectExpansionDBTYPE_WSTROptional.

The restriction, ObjectExpansion, is available for every major object of Microsoft SQL Server Analysis Services. The client typically uses restrictions to describe the OLAP objects for which the DDL is to be returned, and uses the ObjectExpansion restriction to define the degree of expansion in the returned DDL. The following table indicates whether the enumeration value is allowed for Alter Element (XMLA) commands.

Enumeration ValueDescription
ReferenceOnlyReturns only the name/ID/timestamp/state requested for the requested objects and all descendant major objects recursively.
ObjectPropertiesExpands the requested object with no references to contained objects (includes expanded minor contained objects).
ExpandObjectSame as ObjectProperties, but also returns the name, ID, and timestamp for contained major objects.
ExpandFullFully expands the requested object recursively to the bottom of every contained object.

XML for Analysis Schema Rowsets

Community Additions

ADD
Show: