﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by adeilsonrbrito  / Update statistics in all databases / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 18 Jun 2013 18:14:04 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Update statistics in all databases</title><link>http://www.sqlservercentral.com/Forums/Topic902093-2673-1.aspx</link><description>Very good. In fact, this is necessary. Thanks.</description><pubDate>Sun, 18 Apr 2010 19:33:37 GMT</pubDate><dc:creator>adeilsonrbrito</dc:creator></item><item><title>RE: Update statistics in all databases</title><link>http://www.sqlservercentral.com/Forums/Topic902093-2673-1.aspx</link><description>Hi,I have some databases with spaces in the names and so I added some square brackets;USE mastergoexec sp_MSforeachdb ' IF (''?'' NOT IN (''master'',''tempdb'',''model'',''msdb'',''ReportServerTempDB''))BEGIN PRINT ''Atualizando estatísticas de '' + ''?''use [?] exec sp_updatestats END';Thanks for the useful snippet!</description><pubDate>Sun, 18 Apr 2010 18:52:21 GMT</pubDate><dc:creator>AndrewB-A</dc:creator></item><item><title>RE: Update statistics in all databases</title><link>http://www.sqlservercentral.com/Forums/Topic902093-2673-1.aspx</link><description>No problem. Thanks for your message.</description><pubDate>Sat, 17 Apr 2010 06:01:11 GMT</pubDate><dc:creator>adeilsonrbrito</dc:creator></item><item><title>RE: Update statistics in all databases</title><link>http://www.sqlservercentral.com/Forums/Topic902093-2673-1.aspx</link><description>Ha! I must not have had my first cup of coffee before making that post. Good call.</description><pubDate>Fri, 16 Apr 2010 14:14:11 GMT</pubDate><dc:creator>delamater</dc:creator></item><item><title>RE: Update statistics in all databases</title><link>http://www.sqlservercentral.com/Forums/Topic902093-2673-1.aspx</link><description>Because sp_updatestats just update statistics in all tables in the current database.</description><pubDate>Fri, 16 Apr 2010 10:14:50 GMT</pubDate><dc:creator>adeilsonrbrito</dc:creator></item><item><title>RE: Update statistics in all databases</title><link>http://www.sqlservercentral.com/Forums/Topic902093-2673-1.aspx</link><description>Why not use sp_updatestats?</description><pubDate>Fri, 16 Apr 2010 08:50:29 GMT</pubDate><dc:creator>delamater</dc:creator></item><item><title>Update statistics in all databases</title><link>http://www.sqlservercentral.com/Forums/Topic902093-2673-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/statistics/70012/"&gt;Update statistics in all databases&lt;/A&gt;[/B]</description><pubDate>Mon, 12 Apr 2010 19:43:48 GMT</pubDate><dc:creator>adeilsonrbrito</dc:creator></item></channel></rss>