<?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: Index Defrag Script, v4.0</title>
	<atom:link href="http://sqlfool.com/2010/04/index-defrag-script-v4-0/feed/" rel="self" type="application/rss+xml" />
	<link>http://sqlfool.com/2010/04/index-defrag-script-v4-0/</link>
	<description>Self-Professed SQL Scripting Junkie!</description>
	<lastBuildDate>Fri, 04 May 2012 08:30:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Index operation &#171; Simon&#039;s SQL</title>
		<link>http://sqlfool.com/2010/04/index-defrag-script-v4-0/comment-page-2/#comment-7570</link>
		<dc:creator>Index operation &#171; Simon&#039;s SQL</dc:creator>
		<pubDate>Thu, 12 Apr 2012 01:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=1316#comment-7570</guid>
		<description>[...] http://sqlfool.com/2010/04/index-defrag-script-v4-0/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://sqlfool.com/2010/04/index-defrag-script-v4-0/" rel="nofollow">http://sqlfool.com/2010/04/index-defrag-script-v4-0/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spaceman</title>
		<link>http://sqlfool.com/2010/04/index-defrag-script-v4-0/comment-page-2/#comment-6494</link>
		<dc:creator>Spaceman</dc:creator>
		<pubDate>Thu, 14 Jul 2011 12:52:33 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=1316#comment-6494</guid>
		<description>In response to my previous comment on the FILLFACTOR used i think it&#039;s a misunderstanding because BOL is a bit contradictory...
&quot;FILLFACTOR = fillfactor
Specifies a percentage that indicates how full the Database Engine should make the leaf level of each index page during index creation or alteration. fillfactor must be an integer value from 1 to 100. The default is 0.&quot;

But later says...

&quot;When an option is not explicitly specified, the current setting is applied. For example, if a FILLFACTOR setting is not specified in the REBUILD clause, the fill factor value stored in the system catalog will be used during the rebuild process.&quot;</description>
		<content:encoded><![CDATA[<p>In response to my previous comment on the FILLFACTOR used i think it&#8217;s a misunderstanding because BOL is a bit contradictory&#8230;<br />
&#8220;FILLFACTOR = fillfactor<br />
Specifies a percentage that indicates how full the Database Engine should make the leaf level of each index page during index creation or alteration. fillfactor must be an integer value from 1 to 100. The default is 0.&#8221;</p>
<p>But later says&#8230;</p>
<p>&#8220;When an option is not explicitly specified, the current setting is applied. For example, if a FILLFACTOR setting is not specified in the REBUILD clause, the fill factor value stored in the system catalog will be used during the rebuild process.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spaceman</title>
		<link>http://sqlfool.com/2010/04/index-defrag-script-v4-0/comment-page-2/#comment-6493</link>
		<dc:creator>Spaceman</dc:creator>
		<pubDate>Thu, 14 Jul 2011 09:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=1316#comment-6493</guid>
		<description>Had another thought on this great script. Would it be benenficial to limit the indexes in scope by table rowcount rather than by index pagecount?.
My thought here is that then i could have several jobs working overnight simultaneously, each one reindexing tables according to the tables rowcount. If i tried this using pagecount i suspect the jobs could end up rebuilding different indexes for the same table at the same time - which would probably cause some sort of contention problem.
Hope that makes sense... thanks.</description>
		<content:encoded><![CDATA[<p>Had another thought on this great script. Would it be benenficial to limit the indexes in scope by table rowcount rather than by index pagecount?.<br />
My thought here is that then i could have several jobs working overnight simultaneously, each one reindexing tables according to the tables rowcount. If i tried this using pagecount i suspect the jobs could end up rebuilding different indexes for the same table at the same time &#8211; which would probably cause some sort of contention problem.<br />
Hope that makes sense&#8230; thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ninja RgR'us</title>
		<link>http://sqlfool.com/2010/04/index-defrag-script-v4-0/comment-page-2/#comment-6482</link>
		<dc:creator>Ninja RgR'us</dc:creator>
		<pubDate>Wed, 13 Jul 2011 13:34:45 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=1316#comment-6482</guid>
		<description>Adjusted my script to allow for an exclusion list of databases (had a 2nd copy of prod db and doubled the maintenance time).


I&#039;m sure I&#039;m not the only one who needs this feature.</description>
		<content:encoded><![CDATA[<p>Adjusted my script to allow for an exclusion list of databases (had a 2nd copy of prod db and doubled the maintenance time).</p>
<p>I&#8217;m sure I&#8217;m not the only one who needs this feature.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spaceman</title>
		<link>http://sqlfool.com/2010/04/index-defrag-script-v4-0/comment-page-2/#comment-6477</link>
		<dc:creator>Spaceman</dc:creator>
		<pubDate>Tue, 12 Jul 2011 09:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=1316#comment-6477</guid>
		<description>am i correct in thinking that the current script will use a default fillfactor of 0?... is so can it be changed to pick the indexes current fillfactor and use this in the alter index statement. Ta.</description>
		<content:encoded><![CDATA[<p>am i correct in thinking that the current script will use a default fillfactor of 0?&#8230; is so can it be changed to pick the indexes current fillfactor and use this in the alter index statement. Ta.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ninja RgR'us</title>
		<link>http://sqlfool.com/2010/04/index-defrag-script-v4-0/comment-page-2/#comment-6393</link>
		<dc:creator>Ninja RgR'us</dc:creator>
		<pubDate>Mon, 04 Jul 2011 12:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=1316#comment-6393</guid>
		<description>Just a quick note to say I love this script and recommended it over 30 times over on sqlservercentral.com

I&#039;m currently working on a fill factor rework project and I&#039;m using your log tables to pick the best candidates for changes.  My &quot;issue&quot; is that you log everything EXCEPT the schema so it makes it a little hard to build my own commands from the history.  I know it&#039;s in the command column but since I&#039;ll be redoing a couple 100 indexes I&#039;d rather not have to work that hard to get it!

TIA.</description>
		<content:encoded><![CDATA[<p>Just a quick note to say I love this script and recommended it over 30 times over on sqlservercentral.com</p>
<p>I&#8217;m currently working on a fill factor rework project and I&#8217;m using your log tables to pick the best candidates for changes.  My &#8220;issue&#8221; is that you log everything EXCEPT the schema so it makes it a little hard to build my own commands from the history.  I know it&#8217;s in the command column but since I&#8217;ll be redoing a couple 100 indexes I&#8217;d rather not have to work that hard to get it!</p>
<p>TIA.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Johnson</title>
		<link>http://sqlfool.com/2010/04/index-defrag-script-v4-0/comment-page-2/#comment-5954</link>
		<dc:creator>Rob Johnson</dc:creator>
		<pubDate>Sat, 04 Jun 2011 14:22:32 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=1316#comment-5954</guid>
		<description>Hi, have been testing this script, and have not really noticed a drop in fragmentation on a table with an index with a page count &gt; 20 and fragmention percent &gt; 30, but when I manually ran the ALTER INDEX command on this index with a FILLFACTOR = 1 statement included, the fragmentation level dropped to nearly 0. Have you ever considered adding logic to include a FILLFACTOR in your REBUILD INDEX logic?</description>
		<content:encoded><![CDATA[<p>Hi, have been testing this script, and have not really noticed a drop in fragmentation on a table with an index with a page count &gt; 20 and fragmention percent &gt; 30, but when I manually ran the ALTER INDEX command on this index with a FILLFACTOR = 1 statement included, the fragmentation level dropped to nearly 0. Have you ever considered adding logic to include a FILLFACTOR in your REBUILD INDEX logic?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Database Oil Changes – Part 2 &#124; Art of the DBA</title>
		<link>http://sqlfool.com/2010/04/index-defrag-script-v4-0/comment-page-2/#comment-5939</link>
		<dc:creator>Database Oil Changes – Part 2 &#124; Art of the DBA</dc:creator>
		<pubDate>Thu, 02 Jun 2011 13:19:45 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=1316#comment-5939</guid>
		<description>[...] you don&#8217;t even have to write your own script! Go take a look at Michelle Ufford&#8217;s(b&#124;t) Index Defrag script. It covers many of the possible scenarios for index rebuilding and, with all its parameters, [...]</description>
		<content:encoded><![CDATA[<p>[...] you don&#8217;t even have to write your own script! Go take a look at Michelle Ufford&#8217;s(b|t) Index Defrag script. It covers many of the possible scenarios for index rebuilding and, with all its parameters, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MF4</title>
		<link>http://sqlfool.com/2010/04/index-defrag-script-v4-0/comment-page-2/#comment-5908</link>
		<dc:creator>MF4</dc:creator>
		<pubDate>Mon, 30 May 2011 12:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=1316#comment-5908</guid>
		<description>Hello,

Thank you for the script, 

My problem is that the script run for 2:56:46 then failed.

Date		5/27/2011 10:00:00 PM
Log		Job History (Index Defrag)

Step ID		1
Server		*\*
Job Name		Index Defrag
Step Name		Run Script
Duration		02:56:46
Sql Severity		0
Sql Message ID		50000
Operator Emailed		
Operator Net sent		
Operator Paged		
Retries Attempted		0

Message
Executed as user: *. ...ssage 50000)  Beginning validation... [SQLSTATE 01000] (Message 50000)  Your selected parameters are...               Defrag indexes with fragmentation greater than 1;              Rebuild indexes with fragmentation greater than 30;              You DO want the commands to be executed automatically;               You want to defrag indexes in DESC order of the PAGE_COUNT value;              You have not specified a time limit; minutes;              ALL databases will be defragged;              ALL tables will be defragged;              We WILL be rescanning indexes;              The scan will be performed in LIMITED mode;              You want to limit defrags to indexes with more than 8 pages;              Indexes will be defragged OFFLINE;              Indexes will be sorted in TEMPDB;              Defrag operations will utilize system defaults for processors;              You DO want to print the ALTER INDEX commands;               You DO want...  The step failed.

Any direction you can point me to ?

Thank you,</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thank you for the script, </p>
<p>My problem is that the script run for 2:56:46 then failed.</p>
<p>Date		5/27/2011 10:00:00 PM<br />
Log		Job History (Index Defrag)</p>
<p>Step ID		1<br />
Server		*\*<br />
Job Name		Index Defrag<br />
Step Name		Run Script<br />
Duration		02:56:46<br />
Sql Severity		0<br />
Sql Message ID		50000<br />
Operator Emailed<br />
Operator Net sent<br />
Operator Paged<br />
Retries Attempted		0</p>
<p>Message<br />
Executed as user: *. &#8230;ssage 50000)  Beginning validation&#8230; [SQLSTATE 01000] (Message 50000)  Your selected parameters are&#8230;               Defrag indexes with fragmentation greater than 1;              Rebuild indexes with fragmentation greater than 30;              You DO want the commands to be executed automatically;               You want to defrag indexes in DESC order of the PAGE_COUNT value;              You have not specified a time limit; minutes;              ALL databases will be defragged;              ALL tables will be defragged;              We WILL be rescanning indexes;              The scan will be performed in LIMITED mode;              You want to limit defrags to indexes with more than 8 pages;              Indexes will be defragged OFFLINE;              Indexes will be sorted in TEMPDB;              Defrag operations will utilize system defaults for processors;              You DO want to print the ALTER INDEX commands;               You DO want&#8230;  The step failed.</p>
<p>Any direction you can point me to ?</p>
<p>Thank you,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RCP</title>
		<link>http://sqlfool.com/2010/04/index-defrag-script-v4-0/comment-page-2/#comment-5854</link>
		<dc:creator>RCP</dc:creator>
		<pubDate>Thu, 19 May 2011 17:03:11 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=1316#comment-5854</guid>
		<description>THank you for developing this script.  It has helped quite a bit in my work.  

I am running into one issue that is problematic. I can run this script without issue when logged into SSMS but when I put the script into a SQL Server 2005 Maintenance Plan I always get the following error:

 Possible failure reasons: Problems with the query, &quot;ResultSet&quot; property not set correctly, parameters not set correctly, or connection not established correctly.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).

I have tried setting up various connections etc to no avail.  Any help woudl be appreciated.

Thank you</description>
		<content:encoded><![CDATA[<p>THank you for developing this script.  It has helped quite a bit in my work.  </p>
<p>I am running into one issue that is problematic. I can run this script without issue when logged into SSMS but when I put the script into a SQL Server 2005 Maintenance Plan I always get the following error:</p>
<p> Possible failure reasons: Problems with the query, &#8220;ResultSet&#8221; property not set correctly, parameters not set correctly, or connection not established correctly.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).</p>
<p>I have tried setting up various connections etc to no avail.  Any help woudl be appreciated.</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
</channel>
</rss>

