<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>SPCQOptimizer Wiki &amp; Documentation Rss Feed</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home</link><description>SPCQOptimizer Wiki Rss Description</description><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=45</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors or bug in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.  User can either use procedure to fix content database or review traces and determine another course of action.    &lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Forum%20and%20Blogs&amp;amp;referringTitle=Home"&gt;Forum and Blogs&lt;/a&gt; KBs that discuss the Content Query issue and limitations.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query against just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists your query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists or limit the number of lists that will be queried&lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;Or at minimum run longer, possibly time-out and use more resources than necessary on the SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;This bug is confirmed by MS in KB 946484.&lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter would work everywhere except for one or two lists. If the filer was applied then no items appeared from the list, turn it off and the list data appeared.   &lt;br /&gt;&lt;i&gt;Turns out the fields I was filtering for the content type were mapped to different SQL Table columns in the &amp;quot;Bad&amp;quot; list than the lists that were &amp;quot;working&amp;quot;. &lt;b&gt;Running this procedure corrected the columns and the information appeared correctly.&lt;/b&gt;&lt;/i&gt;   Again the filter worked if I pointed to the single list but broke when I queried the Site Collection. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  &lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;At minimum you will need&lt;/li&gt;&lt;ul&gt;
&lt;li&gt;read write access to the &lt;i&gt;Work&lt;/i&gt; database &lt;/li&gt;&lt;li&gt;read access to the content database &lt;/li&gt;&lt;li&gt;write access to the content database if need to correct the database tables.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;SharePoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;For each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;After the update, you should reset IIS and the Timer service on the all servers in the farm&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Fri, 27 Jun 2008 16:52:40 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20080627045240P</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=44</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors or bug in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.  User can either use procedure to fix content database or review traces and determine another course of action.    &lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Forum%20and%20Blogs&amp;amp;referringTitle=Home"&gt;Forum and Blogs&lt;/a&gt; that discuss the Content Query issue and limitations.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query against just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists your query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists or limit the number of lists that will be queried&lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;Or at minimum run longer, possibly time-out and use more resources than necessary on the SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;This bug is confirmed by MS in KB 946484.&lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter would work everywhere except for one or two lists. If the filer was applied then no items appeared from the list, turn it off and the list data appeared.   &lt;br /&gt;&lt;i&gt;Turns out the fields I was filtering for the content type were mapped to different SQL Table columns in the &amp;quot;Bad&amp;quot; list than the lists that were &amp;quot;working&amp;quot;. &lt;b&gt;Running this procedure corrected the columns and the information appeared correctly.&lt;/b&gt;&lt;/i&gt;   Again the filter worked if I pointed to the single list but broke when I queried the Site Collection. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  &lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;At minimum you will need&lt;/li&gt;&lt;ul&gt;
&lt;li&gt;read write access to the &lt;i&gt;Work&lt;/i&gt; database &lt;/li&gt;&lt;li&gt;read access to the content database &lt;/li&gt;&lt;li&gt;write access to the content database if need to correct the database tables.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;SharePoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;For each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;After the update, you should reset IIS and the Timer service on the all servers in the farm&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Fri, 27 Jun 2008 16:52:07 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20080627045207P</guid></item><item><title>Updated Wiki: Forum and Blogs</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Forum and Blogs&amp;version=3</link><description>&lt;div class="wikidoc"&gt;
This project is the result of research into a content query problem described here&lt;br /&gt;&lt;a href="http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry" class="externalLink"&gt;http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and here&lt;br /&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1" class="externalLink"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx" class="externalLink"&gt;http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;MS Kb 946484 that describes the problem&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/946484" class="externalLink"&gt;http://support.microsoft.com/kb/946484&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Fri, 27 Jun 2008 16:50:51 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Forum and Blogs 20080627045051P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=43</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors or bug in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.  User can either use procedure to fix content database or review traces and determine another course of action.    &lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Forum%20and%20Blogs&amp;amp;referringTitle=Home"&gt;Forum and Blogs&lt;/a&gt; that discuss the Content Query issue and limitations.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query against just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists your query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists or limit the number of lists that will be queried&lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;Or at minimum run longer, possibly time-out and use more resources than necessary on the SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter would work everywhere except for one or two lists. If the filer was applied then no items appeared from the list, turn it off and the list data appeared.   &lt;br /&gt;&lt;i&gt;Turns out the fields I was filtering for the content type were mapped to different SQL Table columns in the &amp;quot;Bad&amp;quot; list than the lists that were &amp;quot;working&amp;quot;. &lt;b&gt;Running this procedure corrected the columns and the information appeared correctly.&lt;/b&gt;&lt;/i&gt;   Again the filter worked if I pointed to the single list but broke when I queried the Site Collection. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  &lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;At minimum you will need&lt;/li&gt;&lt;ul&gt;
&lt;li&gt;read write access to the &lt;i&gt;Work&lt;/i&gt; database &lt;/li&gt;&lt;li&gt;read access to the content database &lt;/li&gt;&lt;li&gt;write access to the content database if need to correct the database tables.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;SharePoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;For each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;After the update, you should reset IIS and the Timer service on the all servers in the farm&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Sun, 13 Jan 2008 12:25:17 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080113122517P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=42</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Forum%20and%20Blogs&amp;amp;referringTitle=Home"&gt;Forum and Blogs&lt;/a&gt; that discuss the Content Query issue and limitations.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query against just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists your query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists or limit the number of lists that will be queried&lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;Or at minimum run longer, possibly time-out and use more resources than necessary on the SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter would work everywhere except for one or two lists. If the filer was applied then no items appeared from the list, turn it off and the list data appeared.   &lt;br /&gt;&lt;i&gt;Turns out the fields I was filtering for the content type were mapped to different SQL Table columns in the &amp;quot;Bad&amp;quot; list than the lists that were &amp;quot;working&amp;quot;. Running this procedure corrected the columns and the information appeared.&lt;/i&gt;   Again the filter worked if I pointed to the single list but broke when I queried the Site Collection. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  &lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;At minimum you will need&lt;/li&gt;&lt;ul&gt;
&lt;li&gt;read write access to the &lt;i&gt;Work&lt;/i&gt; database &lt;/li&gt;&lt;li&gt;read access to the content database &lt;/li&gt;&lt;li&gt;write access to the content database if need to correct the database tables.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;SharePoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;For each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;After the update, you should reset IIS and the Timer service on the all servers in the farm&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:52:48 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080110045248P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=41</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Forum%20and%20Blogs&amp;amp;referringTitle=Home"&gt;Forum and Blogs&lt;/a&gt; that discuss the Content Query issue and limitations.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query aginst just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists your query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists or limit the number of lists that will be queried&lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach ,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;or at minimum run longer, possiablily time and use more resources than necessary on the SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The 10 list limit Blogged in the link below is a manifistation of disordered columns. &lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter would work everywhere except for one or two lists. If the filer was applied.  no items appeared from the list, turn it off and the list data appeared.   &lt;br /&gt;&lt;i&gt;Turns out the fields I was filtering for the content type were mapped to different SQL Table columns in the &amp;quot;Bad&amp;quot; list than the lists that were &amp;quot;working&amp;quot;. Running this procedure corrected the columns and the information appeared.&lt;/i&gt;   Again the filter worked if I pointed to the single list but broke when I queried the Site Collection. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  &lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;At minimum you will need&lt;/li&gt;&lt;ul&gt;
&lt;li&gt;read write access to the &lt;i&gt;Work&lt;/i&gt; database &lt;/li&gt;&lt;li&gt;read access to the content database &lt;/li&gt;&lt;li&gt;write access to the content database if need to correct the database tables.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;Sharepoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;For each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;After the updae, you should te reset IIS and the Timer service on the all servers in the farm&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:45:32 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080110044532P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=40</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Forum%20and%20Blogs&amp;amp;referringTitle=Home"&gt;Forum and Blogs&lt;/a&gt; that discuss the Content Query issue and limitations.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query aginst just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists your query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists or limit the number of lists that will be queried&lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach ,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;or at minimum run longer, possiablily time and use more resources than necessary on the SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The 10 list limit Blogged in the link below is a manifistation of disordered columns. &lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter would work everywhere except for one or two lists. If the filer was applied.  no items appeared from the list, turn it off and the list data appeared.   &lt;br /&gt;&lt;i&gt;Turns out the fields I was filtering for the content type were mapped to different SQL Table columns in the &amp;quot;Bad&amp;quot; list than the lists that were &amp;quot;working&amp;quot;. Running this procedure corrected the columns and the information appeared.&lt;/i&gt;   Again the filter worked if I pointed to the single list but broke when I queried the Site Collection. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  &lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;At minimum you will need&lt;/li&gt;&lt;ul&gt;
&lt;li&gt;read write access to the &lt;i&gt;Work&lt;/i&gt; database &lt;/li&gt;&lt;li&gt;read access to the content database &lt;/li&gt;&lt;li&gt;write access to the content database if need to correct the database tables.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;Sharepoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;for each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;You should after the update reset IIS and the Timer service on the all servers in the farm.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:44:51 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080110044451P</guid></item><item><title>UPDATED WIKI: Forum and Blogs</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Forum and Blogs&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
This project is the result of research into a content query problem described here&lt;br /&gt;&lt;a href="http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry" class="externalLink"&gt;http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and here&lt;br /&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1" class="externalLink"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx" class="externalLink"&gt;http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:44:06 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Forum and Blogs 20080110044406P</guid></item><item><title>UPDATED WIKI: Forum and Blogs</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Forum and Blogs&amp;version=1</link><description>&lt;div class="wikidoc"&gt;
This project is the result of research into a content query problem described here&lt;br /&gt;http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry and here&lt;br /&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1&lt;br /&gt;http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx&lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:43:36 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Forum and Blogs 20080110044336P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=39</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Forum%20and%20Blogs&amp;amp;referringTitle=Home"&gt;Forum and Blogs&lt;/a&gt; that discuss the Content Query issue and limitations.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query aginst just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists your query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists or limit the number of lists that will be queried&lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach ,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;or at minimum run longer, possiablily time and use more resources than necessary on the SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The 10 list limit Blogged in the link below is a manifistation of disordered columns. &lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter would work everywhere except for one or two lists. If the filer was applied.  no items appeared from the list, turn it off and the list data appeared.   &lt;br /&gt;&lt;i&gt;Turns out the fields I was filtering for the content type were mapped to different SQL Table columns in the &amp;quot;Bad&amp;quot; list than the lists that were &amp;quot;working&amp;quot;. Running this procedure corrected the columns and the information appeared.&lt;/i&gt;   Again the filter worked if I pointed to the single list but broke when I queried the Site Collection. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  &lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;At minimum you will need&lt;/li&gt;&lt;ul&gt;
&lt;li&gt;read write access to the &lt;i&gt;Work&lt;/i&gt; database &lt;/li&gt;&lt;li&gt;read access to the content database &lt;/li&gt;&lt;li&gt;write access to the content database if need to correct the database tables.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;Sharepoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;for each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;You should after the update reset IIS and the Timer service on the all servers in the farm.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt; &lt;br /&gt;This project is the result of research into a content query problem described here&lt;br /&gt;&lt;a href="http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry" class="externalLink"&gt;http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and here&lt;br /&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1" class="externalLink"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx" class="externalLink"&gt;http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:43:21 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080110044321P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=38</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Forum%20and%20Bloggs&amp;amp;referringTitle=Home"&gt;Forum and Bloggs&lt;/a&gt; that discuss the Content Query issue.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query aginst just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists your query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists or limit the number of lists that will be queried&lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach ,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;or at minimum run longer, possiablily time and use more resources than necessary on the SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The 10 list limit Blogged in the link below is a manifistation of disordered columns. &lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter would work everywhere except for one or two lists. If the filer was applied.  no items appeared from the list, turn it off and the list data appeared.   &lt;br /&gt;&lt;i&gt;Turns out the fields I was filtering for the content type were mapped to different SQL Table columns in the &amp;quot;Bad&amp;quot; list than the lists that were &amp;quot;working&amp;quot;. Running this procedure corrected the columns and the information appeared.&lt;/i&gt;   Again the filter worked if I pointed to the single list but broke when I queried the Site Collection. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  &lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;At minimum you will need&lt;/li&gt;&lt;ul&gt;
&lt;li&gt;read write access to the &lt;i&gt;Work&lt;/i&gt; database &lt;/li&gt;&lt;li&gt;read access to the content database &lt;/li&gt;&lt;li&gt;write access to the content database if need to correct the database tables.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;Sharepoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;for each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;You should after the update reset IIS and the Timer service on the all servers in the farm.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt; &lt;br /&gt;This project is the result of research into a content query problem described here&lt;br /&gt;&lt;a href="http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry" class="externalLink"&gt;http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and here&lt;br /&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1" class="externalLink"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx" class="externalLink"&gt;http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:42:31 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080110044231P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=37</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query aginst just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists your query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists or limit the number of lists that will be queried&lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach ,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;or at minimum run longer, possiablily time and use more resources than necessary on the SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The 10 list limit Blogged in the link below is a manifistation of disordered columns. &lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter would work everywhere except for one or two lists. If the filer was applied.  no items appeared from the list, turn it off and the list data appeared.   &lt;br /&gt;&lt;i&gt;Turns out the fields I was filtering for the content type were mapped to different SQL Table columns in the &amp;quot;Bad&amp;quot; list than the lists that were &amp;quot;working&amp;quot;. Running this procedure corrected the columns and the information appeared.&lt;/i&gt;   Again the filter worked if I pointed to the single list but broke when I queried the Site Collection. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  &lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;At minimum you will need&lt;/li&gt;&lt;ul&gt;
&lt;li&gt;read write access to the &lt;i&gt;Work&lt;/i&gt; database &lt;/li&gt;&lt;li&gt;read access to the content database &lt;/li&gt;&lt;li&gt;write access to the content database if need to correct the database tables.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;Sharepoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;for each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;You should after the update reset IIS and the Timer service on the all servers in the farm.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt; &lt;br /&gt;This project is the result of research into a content query problem described here&lt;br /&gt;&lt;a href="http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry" class="externalLink"&gt;http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and here&lt;br /&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1" class="externalLink"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx" class="externalLink"&gt;http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:40:36 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080110044036P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=36</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query aginst just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists your query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists or limit the number of lists that will be queried&lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach ,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;or at minimum run longer, possiablily time and use more resources than necessary on the SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The 10 list limit Blogged in the link below is a manifistation of disordered columns. &lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter would work everywhere except for one or two lists. If the filer was applied.  no items appeared from the list, turn it off and the list data appeared.   &lt;br /&gt;&lt;i&gt;Turns out the fields I was filtering for the content type were mapped to different SQL Table columns in the &amp;quot;Bad&amp;quot; list than the lists that were &amp;quot;working&amp;quot;. Running this procedure corrected the columns and the information appeared.&lt;/i&gt;   Again the filter worked if I pointed to the single list but broke when I queried the Site Collection. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  At minimum you will need read write access to the &lt;i&gt;Work&lt;/i&gt; database and read access to the content database and write if ou need to correct the database.&lt;br /&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;Sharepoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;for each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;You should after the update reset IIS and the Timer service on the all servers in the farm.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt; &lt;br /&gt;This project is the result of research into a content query problem described here&lt;br /&gt;&lt;a href="http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry" class="externalLink"&gt;http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and here&lt;br /&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1" class="externalLink"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx" class="externalLink"&gt;http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:38:18 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080110043818P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=35</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query aginst just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists your query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists or limit the number of lists that will be queried&lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach ,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;or at minimum run longer, possiablily time and use more resources than necessary on the SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The 10 list limit Blogged in the link below is a manifistation of disordered columns. &lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter would work everywhere except for one or two lists. If the filer was applied.  no items appeared from the list, turn it off and the list data appeared.   &lt;br /&gt;&lt;i&gt;Turns out the fields I was filtering in the content type were in different columns than the othe rlists that were &amp;quot;working&amp;quot;. Running this procedure corrected the columns and the information appeared.&lt;/i&gt; &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  At minimum you will need read write access to the &lt;i&gt;Work&lt;/i&gt; database and read access to the content database and write if ou need to correct the database.&lt;br /&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;Sharepoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;for each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;You should after the update reset IIS and the Timer service on the all servers in the farm.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt; &lt;br /&gt;This project is the result of research into a content query problem described here&lt;br /&gt;&lt;a href="http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry" class="externalLink"&gt;http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and here&lt;br /&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1" class="externalLink"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx" class="externalLink"&gt;http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:35:25 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080110043525P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=34</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query aginst just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists your query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists or limit the number of lists that will be queried&lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach ,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;or at minimum run longer, possiablily time and use more resources than necessary on the SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The 10 list limit Blogged in the link below is a manifistation of disordered columns. &lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter worked everywhere except for one or two lists. If the filer was applied.  no items appeared from the list.   Turns out the fields I was filtering in the content type were in different columns than the othe rlists that were &amp;quot;working&amp;quot;. Running this procedure corrected the columns and the information appeared. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  At minimum you will need read write access to the &lt;i&gt;Work&lt;/i&gt; database and read access to the content database and write if ou need to correct the database.&lt;br /&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;Sharepoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;for each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;You should after the update reset IIS and the Timer service on the all servers in the farm.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt; &lt;br /&gt;This project is the result of research into a content query problem described here&lt;br /&gt;&lt;a href="http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry" class="externalLink"&gt;http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and here&lt;br /&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1" class="externalLink"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx" class="externalLink"&gt;http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:34:12 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080110043412P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=33</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query aginst just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists your query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists or limit the number of lists that will be queried&lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach ,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;or at minimum run longer, possiablily time and use more resources that necessary on th SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The 10 list limit Blogged in the link below is a manifistation of disordered columns. &lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter worked everywhere except for one or two lists. If the filer was applied.  no items appeared from the list.   Turns out the fields I was filtering in the content type were in different columns than the othe rlists that were &amp;quot;working&amp;quot;. Running this procedure corrected the columns and the information appeared. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  At minimum you will need read write access to the &lt;i&gt;Work&lt;/i&gt; database and read access to the content database and write if ou need to correct the database.&lt;br /&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;Sharepoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;for each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;You should after the update reset IIS and the Timer service on the all servers in the farm.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt; &lt;br /&gt;This project is the result of research into a content query problem described here&lt;br /&gt;&lt;a href="http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry" class="externalLink"&gt;http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and here&lt;br /&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1" class="externalLink"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx" class="externalLink"&gt;http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:33:46 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080110043346P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=32</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query aginst just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists you query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists. &lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach ,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;or at minimum run longer, possiablily time and use more resources that necessary on th SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The 10 list limit Blogged in the link below is a manifistation of disordered columns. &lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter worked everywhere except for one or two lists. If the filer was applied.  no items appeared from the list.   Turns out the fields I was filtering in the content type were in different columns than the othe rlists that were &amp;quot;working&amp;quot;. Running this procedure corrected the columns and the information appeared. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  At minimum you will need read write access to the &lt;i&gt;Work&lt;/i&gt; database and read access to the content database and write if ou need to correct the database.&lt;br /&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;Sharepoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;for each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;You should after the update reset IIS and the Timer service on the all servers in the farm.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt; &lt;br /&gt;This project is the result of research into a content query problem described here&lt;br /&gt;&lt;a href="http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry" class="externalLink"&gt;http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and here&lt;br /&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1" class="externalLink"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx" class="externalLink"&gt;http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:32:45 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080110043245P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=31</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;How data is arranged in the SQL AllUsersTable for a single list does not matter and any query aginst just one list works fine, but for the cross site content query, field order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists you query for a specific content type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists. &lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach ,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;or at minimum run longer, possiablily time and use more resources that necessary on th SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The 10 list limit Blogged in the link above is a manifistation of disordered columns. &lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter worked everywhere except for one or two lists. If the filer was applied.  no items appeared from the list.   Turns out the fields I was filtering in the content type were in different columns than the othe rlists that were &amp;quot;working&amp;quot;. Running this procedure corrected the columns and the information appeared. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  At minimum you will need read write access to the &lt;i&gt;Work&lt;/i&gt; database and read access to the content database and write if ou need to correct the database.&lt;br /&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;Sharepoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;for each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;You should after the update reset IIS and the Timer service on the all servers in the farm.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt; &lt;br /&gt;This project is the result of research into a content query problem described here&lt;br /&gt;&lt;a href="http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry" class="externalLink"&gt;http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and here&lt;br /&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1" class="externalLink"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx" class="externalLink"&gt;http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:32:28 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080110043228P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=30</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;This is all fine for a single list and how the data is arrange does not matter, but for the cross site content query, order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists you want to query for a specific type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists. &lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach ,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;or at minimum run longer, possiablily time and use more resources that necessary on th SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The 10 list limit Blogged in the link above is a manifistation of disordered columns. &lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter worked everywhere except for one or two lists. If the filer was applied.  no items appeared from the list.   Turns out the fields I was filtering in the content type were in different columns than the othe rlists that were &amp;quot;working&amp;quot;. Running this procedure corrected the columns and the information appeared. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  At minimum you will need read write access to the &lt;i&gt;Work&lt;/i&gt; database and read access to the content database and write if ou need to correct the database.&lt;br /&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;Sharepoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;for each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;You should after the update reset IIS and the Timer service on the all servers in the farm.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt; &lt;br /&gt;This project is the result of research into a content query problem described here&lt;br /&gt;&lt;a href="http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry" class="externalLink"&gt;http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and here&lt;br /&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1" class="externalLink"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx" class="externalLink"&gt;http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:30:50 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080110043050P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Home&amp;version=29</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To discover, analyze and correct optimization issues and &amp;#47; or  query errors in the MOSS Content Query and Content Query Web Part.  Applying this procedure can speed up cross site content query and correct issues where list information either fails to appear, appears incorrectly, or security is not properly applied and users see incorrect data.  &lt;br /&gt;&lt;br /&gt;Procedure analyzes the content database for a user supplied content type and determines if a content query would fail or if performance of the query could be improved.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/SPCQOptimizer/Wiki/View.aspx?title=Content%20Query%20Background&amp;amp;referringTitle=Home"&gt;Content Query Background&lt;/a&gt; - How it works and SQL Database Tables information&lt;br /&gt; &lt;br /&gt;This project is the result of research into a content query problem described here&lt;br /&gt;&lt;a href="http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry" class="externalLink"&gt;http://znetsys.spaces.live.com/blog/cns!ED65D09C41E55E06!147.entry&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and here&lt;br /&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1" class="externalLink"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2607842&amp;amp;SiteID=1&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx" class="externalLink"&gt;http://www.sharepointblogs.com/smc750/archive/2007/07/24/spsitedataquery-limited-to-10-document-libraries-or-lists.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;b&gt;The Problem&lt;/b&gt;&lt;br /&gt;This is all fine for a single list and how the data is arrange does not matter, but for the cross site content query, order is everything and if the content type fields do not occupy the same positions in the AllUserData table across all your lists you want to query for a specific type then your query could: &lt;br /&gt; &lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Not display data from various lists. &lt;/li&gt;&lt;li&gt;Display the wrong data from lists,&lt;/li&gt;&lt;li&gt;Cause a security breach ,&lt;/li&gt;&lt;li&gt;Waste your time trying to figure out what is wrong. &lt;/li&gt;&lt;li&gt;or at minimum run longer, possiablily time and use more resources that necessary on th SQL Server.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;The 10 list limit Blogged in the link above is a manifistation of disordered columns. &lt;br /&gt; &lt;br /&gt;The error appeared for me as a filtering error.  Although everything looked identical in the lists configurations, the same filter worked everywhere except for one or two lists. If the filer was applied.  no items appeared from the list.   Turns out the fields I was filtering in the content type were in different columns than the othe rlists that were &amp;quot;working&amp;quot;. Running this procedure corrected the columns and the information appeared. &lt;br /&gt; &lt;br /&gt;Although the SharePoint guides stress planning , that is not much help when working with migrated sites  and/or lists that were pure a year ago when you first deployed but now have been updated by users and you are adding the new functionality in the way of ContentTypes and the Content Query.  &lt;br /&gt; &lt;br /&gt;Of course the worst part is that there is nothing in SharePoint to show you what is wrong.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Project Solution&lt;/b&gt;&lt;br /&gt;This project consists of a stored procedure that you will need to install on the SQL Server where your content database is installed.   It is designed to be complied in a separate &lt;i&gt;work&lt;/i&gt; database on the server so it is &lt;b&gt;not&lt;/b&gt; installed in the SharePoint content database.  When run it will create some work tables and scan the database for a particular content type and display any errors that if finds.  At minimum you will need read write access to the &lt;i&gt;Work&lt;/i&gt; database and read access to the content database and write if ou need to correct the database.&lt;br /&gt; &lt;br /&gt;There is an option to print the SQL update commands and/or run the update directly which will correct the database for content types that are not constant.  The procedure will rank the content type across lists to determine which list represents the best candidate to use as a master template list for which all other lists will be updated.   You can supply a master list template that you wish to use instead. Note that I mean a real list and not a &amp;quot;Sharepoint List Template&amp;quot;&lt;br /&gt; &lt;br /&gt;Note that any fields which are not part of the master list that appear in the other lists to be updated will simply be moved to other columns in the AllUsersData.  &lt;br /&gt; &lt;br /&gt;The update procedure performs two tasks&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Determines which lists are out of sync with the master list.&lt;/li&gt;&lt;li&gt;Makes a copy to the list to be updated and the data that will be updated and stores in in the work database tables. &lt;/li&gt;&lt;li&gt;For those lists, updates the tp_Fields column in the AllLists table with the new column settings.  Technically it updates xml attributes ColName, ColName2, Colname3 for each field if they are different.  It does not simply replace the tp_fields column in whole from the master list.&lt;/li&gt;&lt;li&gt;for each lists the actual list data is moved from the old column to the new column in the AllUsersData table. &lt;/li&gt;&lt;li&gt;You should after the update reset IIS and the Timer service on the all servers in the farm.  &lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Good luck&lt;br /&gt;
&lt;/div&gt;</description><author>bvanburen</author><pubDate>Thu, 10 Jan 2008 16:30:21 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080110043021P</guid></item></channel></rss>