Target namespace: http://schemas.microsoft.com/office/accessservices/2009/11/reports

Referenced by: DataSetType

A Query element as specified by [MS-RDL] section 2.331.

Child Elements:

CommandText : A string ([XMLSCHEMA2/2] section 3.2.1) element that specifies the name of a list, the name of a Query, or a CT_Query enclosed by a CDATA ([XML] section 2.7) block.

DataSourceName : A string ([XMLSCHEMA2/2] section 3.2.1) element as specified by [MS-RDL] section 2.331.3. MUST be set to "ADS".

QueryParameters : A QueryParametersType element.

The following W3C XML Schema ([XMLSCHEMA1/2] section 2.1) fragment specifies the contents of this complex type.

 <xsd:complexType name="QueryType">
   <xsd:choice maxOccurs="unbounded">
     <xsd:element name="DataSourceName" wbld:cname="DataSourceName" type="xsd:string"/>
     <xsd:element name="CommandText" wbld:cname="CommandText" type="xsd:string"/>
     <xsd:element name="QueryParameters" wbld:cname="QueryParameters" type="QueryParametersType" minOccurs="0"/>

See section 5.5 for the full W3C XML Schema ([XMLSCHEMA1/2] section 2.1).