Query Element (RDL)

Contains information about the query contained within the dataset.

语法

<DataSet Name="...">
       ...
        <Query>
              <DataSourceName>...</DataSourceName>
              <CommandType>...</CommandType>
              <CommandText>...</CommandText>
              <QueryParameters>...</QueryParameters>
              <Timeout>...</Timeout>
        </Query>
       ...
</DataSet>

Element Characteristics

Characteristic Description

Data type and length

None

Default value

None

Cardinality

1-1: Required element that occurs once and only once.

Element Relationships

Relationship Element

Parent element

DataSet

Child elements

CommandText, CommandType, DataSourceName, QueryParameters, Timeout

请参阅

参考

Report Definition XML Elements

帮助和信息

获取 SQL Server 2005 帮助