<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; 2008 &#8211; Unused Index Script &#8211; Download</title>
	<atom:link href="http://blog.sqlauthority.com/2011/01/04/sql-server-2008-unused-index-script-download/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2011/01/04/sql-server-2008-unused-index-script-download/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Wed, 22 May 2013 19:03:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #010 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2011/01/04/sql-server-2008-unused-index-script-download/#comment-403905</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #010 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 05 Jan 2013 01:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=11429#comment-403905</guid>
		<description><![CDATA[[...] Missing Index Script and Unused Index Script – Download [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Missing Index Script and Unused Index Script – Download [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric M</title>
		<link>http://blog.sqlauthority.com/2011/01/04/sql-server-2008-unused-index-script-download/#comment-402494</link>
		<dc:creator><![CDATA[Eric M]]></dc:creator>
		<pubDate>Wed, 02 Jan 2013 00:56:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=11429#comment-402494</guid>
		<description><![CDATA[In your script I noticed you opted out of dropping any unused unique indexes why?]]></description>
		<content:encoded><![CDATA[<p>In your script I noticed you opted out of dropping any unused unique indexes why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Identify Numbers of Non Clustered Index on Tables for Entire Database &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2011/01/04/sql-server-2008-unused-index-script-download/#comment-357635</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Identify Numbers of Non Clustered Index on Tables for Entire Database &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Tue, 09 Oct 2012 01:31:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=11429#comment-357635</guid>
		<description><![CDATA[[...] workload (here is the blog post to identify them), drop unused indexes with careful observation (here is the script for it), identify missing indexes and after careful testing add them (here is the script for it). Even [...]]]></description>
		<content:encoded><![CDATA[<p>[...] workload (here is the blog post to identify them), drop unused indexes with careful observation (here is the script for it), identify missing indexes and after careful testing add them (here is the script for it). Even [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Bridgman</title>
		<link>http://blog.sqlauthority.com/2011/01/04/sql-server-2008-unused-index-script-download/#comment-287996</link>
		<dc:creator><![CDATA[Dan Bridgman]]></dc:creator>
		<pubDate>Thu, 24 May 2012 12:50:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=11429#comment-287996</guid>
		<description><![CDATA[This was exactly the point I was going to make David but it looks like you&#039;ve beaten me to it ;) the INNER JOIN kinda negates the point of looking for indexes that aren&#039;t used.

Regards,
Dan B]]></description>
		<content:encoded><![CDATA[<p>This was exactly the point I was going to make David but it looks like you&#8217;ve beaten me to it ;) the INNER JOIN kinda negates the point of looking for indexes that aren&#8217;t used.</p>
<p>Regards,<br />
Dan B</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Difference between Create Index &#8211; Drop Index &#8211; Rebuild Index &#8211; Quiz &#8211; Puzzle &#8211; 21 of 31 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2011/01/04/sql-server-2008-unused-index-script-download/#comment-242008</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Difference between Create Index &#8211; Drop Index &#8211; Rebuild Index &#8211; Quiz &#8211; Puzzle &#8211; 21 of 31 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sun, 22 Jan 2012 01:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=11429#comment-242008</guid>
		<description><![CDATA[[...] Server Interview Questions and Answers ISBN: 1466405643 Page#149 Unused Index Script – Download Missing Index Script – Download Disable Clustered Index and Data Insert Generate Report for Index [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Server Interview Questions and Answers ISBN: 1466405643 Page#149 Unused Index Script – Download Missing Index Script – Download Disable Clustered Index and Data Insert Generate Report for Index [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shobhit</title>
		<link>http://blog.sqlauthority.com/2011/01/04/sql-server-2008-unused-index-script-download/#comment-211966</link>
		<dc:creator><![CDATA[Shobhit]]></dc:creator>
		<pubDate>Tue, 06 Dec 2011 09:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=11429#comment-211966</guid>
		<description><![CDATA[Hi Pinal,

Can you please explain what are the following column names suggests:

dm_ius.user_seeks AS UserSeek
dm_ius.user_scans AS UserScans
dm_ius.user_lookups AS UserLookups
dm_ius.user_updates AS UserUpdates

e.i. how does these values changes, what factors changes all above values ?

Thanks in advance.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Can you please explain what are the following column names suggests:</p>
<p>dm_ius.user_seeks AS UserSeek<br />
dm_ius.user_scans AS UserScans<br />
dm_ius.user_lookups AS UserLookups<br />
dm_ius.user_updates AS UserUpdates</p>
<p>e.i. how does these values changes, what factors changes all above values ?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Ames</title>
		<link>http://blog.sqlauthority.com/2011/01/04/sql-server-2008-unused-index-script-download/#comment-148043</link>
		<dc:creator><![CDATA[David Ames]]></dc:creator>
		<pubDate>Wed, 13 Jul 2011 17:08:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=11429#comment-148043</guid>
		<description><![CDATA[Hey Pinal,

That&#039;s a great script (as yours always are), however I think you are missing another class of &quot;missing indexes&quot;, and that is indexes that don&#039;t have stats at all.  Rows are only written to dm_db_index_usage_stats when an index is used.  If that index is totally un-used (even for writing to), it won&#039;t appear in dm_db_index_usage_stats  and therefore won&#039;t be included in your script.


Try this on a production system, you might be surprised by how many rows it returns:

SELECT  object_name(i.object_id) as tableName, i.name as indexName
FROM sys.indexes i
LEFT JOIN  sys.dm_db_index_usage_stats s ON i.object_id = s.object_id AND  i.index_id = s.index_id  AND  s.database_id =  db_id() 
WHERE objectproperty(i.object_id,&#039;IsUserTable&#039;) = 1 and i.index_id&gt; 0
 AND  s.object_id IS NULL
 AND i.is_Primary_Key = 0
 AND i.is_unique_constraint = 0
 AND i.is_unique = 0


--Dave (Another CFer)]]></description>
		<content:encoded><![CDATA[<p>Hey Pinal,</p>
<p>That&#8217;s a great script (as yours always are), however I think you are missing another class of &#8220;missing indexes&#8221;, and that is indexes that don&#8217;t have stats at all.  Rows are only written to dm_db_index_usage_stats when an index is used.  If that index is totally un-used (even for writing to), it won&#8217;t appear in dm_db_index_usage_stats  and therefore won&#8217;t be included in your script.</p>
<p>Try this on a production system, you might be surprised by how many rows it returns:</p>
<p>SELECT  object_name(i.object_id) as tableName, i.name as indexName<br />
FROM sys.indexes i<br />
LEFT JOIN  sys.dm_db_index_usage_stats s ON i.object_id = s.object_id AND  i.index_id = s.index_id  AND  s.database_id =  db_id()<br />
WHERE objectproperty(i.object_id,&#8217;IsUserTable&#8217;) = 1 and i.index_id&gt; 0<br />
 AND  s.object_id IS NULL<br />
 AND i.is_Primary_Key = 0<br />
 AND i.is_unique_constraint = 0<br />
 AND i.is_unique = 0</p>
<p>&#8211;Dave (Another CFer)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Query to Find Duplicate Indexes – Script to Find Redundant Indexes Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2011/01/04/sql-server-2008-unused-index-script-download/#comment-147860</link>
		<dc:creator><![CDATA[SQL SERVER – Query to Find Duplicate Indexes – Script to Find Redundant Indexes Journey to SQLAuthority]]></dc:creator>
		<pubDate>Wed, 13 Jul 2011 03:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=11429#comment-147860</guid>
		<description><![CDATA[[...] SQL SERVER – 2008 – Unused Index Script – Download [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER – 2008 – Unused Index Script – Download [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo</title>
		<link>http://blog.sqlauthority.com/2011/01/04/sql-server-2008-unused-index-script-download/#comment-118655</link>
		<dc:creator><![CDATA[Leo]]></dc:creator>
		<pubDate>Tue, 15 Feb 2011 16:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=11429#comment-118655</guid>
		<description><![CDATA[Hi Pinal,

Is that anyway can you provide the script to look at user tables and find out which many userseeks, userscan, userlook on Each Individual Index rather than UNUsedIndex script?

Thanks.

Leo]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Is that anyway can you provide the script to look at user tables and find out which many userseeks, userscan, userlook on Each Individual Index rather than UNUsedIndex script?</p>
<p>Thanks.</p>
<p>Leo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>http://blog.sqlauthority.com/2011/01/04/sql-server-2008-unused-index-script-download/#comment-113648</link>
		<dc:creator><![CDATA[Gary]]></dc:creator>
		<pubDate>Sun, 23 Jan 2011 18:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=11429#comment-113648</guid>
		<description><![CDATA[Can you comment more on this part of the article:

&quot;You should pay attention to User Scan, User Lookup and User Update when you are going to drop index&quot;

I would appreciate a separate article addressing these items.

Thanks,
Gary

ETL Developer]]></description>
		<content:encoded><![CDATA[<p>Can you comment more on this part of the article:</p>
<p>&#8220;You should pay attention to User Scan, User Lookup and User Update when you are going to drop index&#8221;</p>
<p>I would appreciate a separate article addressing these items.</p>
<p>Thanks,<br />
Gary</p>
<p>ETL Developer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mjfii</title>
		<link>http://blog.sqlauthority.com/2011/01/04/sql-server-2008-unused-index-script-download/#comment-109490</link>
		<dc:creator><![CDATA[mjfii]]></dc:creator>
		<pubDate>Tue, 04 Jan 2011 22:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=11429#comment-109490</guid>
		<description><![CDATA[This does not consider indexes that were created because of a foreign key on the same column.  What are your thoughts on ALWAYS having an index on a foreign key.  As a rule of thumb, I always do this.  Is there any reason I shouldn&#039;t????

mjfii]]></description>
		<content:encoded><![CDATA[<p>This does not consider indexes that were created because of a foreign key on the same column.  What are your thoughts on ALWAYS having an index on a foreign key.  As a rule of thumb, I always do this.  Is there any reason I shouldn&#8217;t????</p>
<p>mjfii</p>
]]></content:encoded>
	</item>
</channel>
</rss>
