Query Element (XMLA)
Contains a query within the Queries collection used by the DesignAggregations command during usage-based optimization.
The DesignAggregations command supports usage-based optimization by including one or more Query elements in the Queries collection of the command. Each Query element represents a goal query that the design process uses to define aggregations that target the most frequently used queries. You can either specify your own goal queries, or you can use the information stored by an instance of Microsoft SQL Server Analysis Services in the query log to retrieve information about the most frequently used queries.
If you are iteratively designing aggregations, you only have to pass goal queries in the first DesignAggregations command because the Analysis Services instance stores these goal queries and uses these queries during subsequent DesignAggregations commands. After you pass goal queries in the first DesignAggregations command of an iterative process, any subsequent DesignAggregations command that contains goal queries in the Queries property generates an error.
The Query element contains a comma-delimited value that contains the following arguments:
Frequency,Dataset[,Dataset...]
Note