Cross List dotaz
*Dotaz probíhá ve dvou fázích
*V první WSS vybírá relevantní seznamy a případně použije NVP index pro odstranění seznamů, které mají stejný obsah
*Ve druhé fázi WSS prochází data v každém seznamu a případně použije NVP index pro urychlení
*SPSiteDataQuery vrací DataTable
SPSiteDataQuery.Query =
@"<Where> <Eq>
   <FieldRef Name='Author'/>
     <Value Type='String'>'Fitzmaurice'</Value>
   </Eq>
 </Where>"
SpSiteDataQuery.Lists = <Lists ServerTemplate="101">
Instructor Notes
Cross list queries require the use of the new SPSiteDataQuery class. When used within a custom Web Part, this class allows you to prepare and execute a query that returns an ADO.NET DataTable object. Before executing the query, you specify the criteria for what lists or document libraries you want to query. The query in the slide above is run against all document libraries because it specifies a ServerTemplate of 101. You can also specify the fields to be returned as well as filtering and ordering information similar to what you would add to WHERE clauses and ORDER BY clauses in a SQL query.