<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Update Statistics</title>
	<atom:link href="http://sqlserverplanet.com/scripts/update-statistics/feed" rel="self" type="application/rss+xml" />
	<link>http://sqlserverplanet.com/scripts/update-statistics</link>
	<description>Tips and Articles on SQL Server</description>
	<lastBuildDate>Wed, 16 May 2012 18:08:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: rlrcstr</title>
		<link>http://sqlserverplanet.com/scripts/update-statistics/comment-page-1#comment-1140</link>
		<dc:creator>rlrcstr</dc:creator>
		<pubDate>Fri, 23 Mar 2012 14:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://sqlserverplanet.com/?p=316#comment-1140</guid>
		<description>The dynamic sql fails in certain circumstances...  For instance, the DB I&#039;m working with has a table named fim.Set.  The statement generated is:

UPDATE STATISTICS fim.Set _WA_Sys_00000002_3B75D760

It needs to be:

UPDATE STATISTICS fim.[Set] _WA_Sys_00000002_3B75D760

Also, I had to add brackets around the index name, as well, as some of the indexes have a hyphen in them and SQL doesn&#039;t like that either.</description>
		<content:encoded><![CDATA[<p>The dynamic sql fails in certain circumstances&#8230;  For instance, the DB I&#8217;m working with has a table named fim.Set.  The statement generated is:</p>
<p>UPDATE STATISTICS fim.Set _WA_Sys_00000002_3B75D760</p>
<p>It needs to be:</p>
<p>UPDATE STATISTICS fim.[Set] _WA_Sys_00000002_3B75D760</p>
<p>Also, I had to add brackets around the index name, as well, as some of the indexes have a hyphen in them and SQL doesn&#8217;t like that either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brendan</title>
		<link>http://sqlserverplanet.com/scripts/update-statistics/comment-page-1#comment-870</link>
		<dc:creator>Brendan</dc:creator>
		<pubDate>Tue, 20 Sep 2011 19:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://sqlserverplanet.com/?p=316#comment-870</guid>
		<description>You are the man, thank you for saving me hours!  

Simple and after 10 websites of crap this fixed my problem with one line of code and 20 seconds of run time.</description>
		<content:encoded><![CDATA[<p>You are the man, thank you for saving me hours!  </p>
<p>Simple and after 10 websites of crap this fixed my problem with one line of code and 20 seconds of run time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://sqlserverplanet.com/scripts/update-statistics/comment-page-1#comment-284</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Thu, 14 Oct 2010 11:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://sqlserverplanet.com/?p=316#comment-284</guid>
		<description>Thank you for the code.
(a minor issue: there are some html escape codes in the SQL: less-than, greater-than things)</description>
		<content:encoded><![CDATA[<p>Thank you for the code.<br />
(a minor issue: there are some html escape codes in the SQL: less-than, greater-than things)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

