<?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; 2005 &#8211; Find Index Fragmentation Details &#8211; Slow Index Performance</title>
	<atom:link href="http://blog.sqlauthority.com/2008/03/27/sql-server-2005-find-index-fragmentation-details-slow-index-performance/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/03/27/sql-server-2005-find-index-fragmentation-details-slow-index-performance/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Tue, 16 Mar 2010 17:19:27 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: george Gopie</title>
		<link>http://blog.sqlauthority.com/2008/03/27/sql-server-2005-find-index-fragmentation-details-slow-index-performance/#comment-55092</link>
		<dc:creator>george Gopie</dc:creator>
		<pubDate>Fri, 21 Aug 2009 13:19:27 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=549#comment-55092</guid>
		<description>Pinal,

Why the script would not return any indexes and their statistics e.g % fragmented? Doe this mean ther are none indexes in this datbase thar are fragmented even a small percent. DO i need to run something else before i run this script.</description>
		<content:encoded><![CDATA[<p>Pinal,</p>
<p>Why the script would not return any indexes and their statistics e.g % fragmented? Doe this mean ther are none indexes in this datbase thar are fragmented even a small percent. DO i need to run something else before i run this script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: willBen</title>
		<link>http://blog.sqlauthority.com/2008/03/27/sql-server-2005-find-index-fragmentation-details-slow-index-performance/#comment-52902</link>
		<dc:creator>willBen</dc:creator>
		<pubDate>Wed, 10 Jun 2009 11:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=549#comment-52902</guid>
		<description>Pinal Dave, you sir, are, a legend.</description>
		<content:encoded><![CDATA[<p>Pinal Dave, you sir, are, a legend.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Musab</title>
		<link>http://blog.sqlauthority.com/2008/03/27/sql-server-2005-find-index-fragmentation-details-slow-index-performance/#comment-45195</link>
		<dc:creator>Musab</dc:creator>
		<pubDate>Tue, 30 Dec 2008 09:38:24 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=549#comment-45195</guid>
		<description>Try rebuilding the index it will improve it</description>
		<content:encoded><![CDATA[<p>Try rebuilding the index it will improve it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AdminByDefault</title>
		<link>http://blog.sqlauthority.com/2008/03/27/sql-server-2005-find-index-fragmentation-details-slow-index-performance/#comment-43401</link>
		<dc:creator>AdminByDefault</dc:creator>
		<pubDate>Tue, 30 Sep 2008 12:55:29 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=549#comment-43401</guid>
		<description>I have tried to defrag the tables in my databases but have discovered that some indexes will not improve better than 85% total fragmentation.  How can I overcome this problem? Or is this something that I should not be concerned with?</description>
		<content:encoded><![CDATA[<p>I have tried to defrag the tables in my databases but have discovered that some indexes will not improve better than 85% total fragmentation.  How can I overcome this problem? Or is this something that I should not be concerned with?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yusuf</title>
		<link>http://blog.sqlauthority.com/2008/03/27/sql-server-2005-find-index-fragmentation-details-slow-index-performance/#comment-41704</link>
		<dc:creator>Yusuf</dc:creator>
		<pubDate>Fri, 15 Aug 2008 14:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=549#comment-41704</guid>
		<description>Can we merge the following into the output 
1. Indexed Columns
2. Included Columns</description>
		<content:encoded><![CDATA[<p>Can we merge the following into the output<br />
1. Indexed Columns<br />
2. Included Columns</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DiegoP</title>
		<link>http://blog.sqlauthority.com/2008/03/27/sql-server-2005-find-index-fragmentation-details-slow-index-performance/#comment-38830</link>
		<dc:creator>DiegoP</dc:creator>
		<pubDate>Tue, 27 May 2008 16:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=549#comment-38830</guid>
		<description>You can replace DB_ID() with the database ID:

You can do this to find out the ID:

USE yourdatabase
SELECT DB_ID() AS [Database ID];
GO</description>
		<content:encoded><![CDATA[<p>You can replace DB_ID() with the database ID:</p>
<p>You can do this to find out the ID:</p>
<p>USE yourdatabase<br />
SELECT DB_ID() AS [Database ID];<br />
GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PAN</title>
		<link>http://blog.sqlauthority.com/2008/03/27/sql-server-2005-find-index-fragmentation-details-slow-index-performance/#comment-38750</link>
		<dc:creator>PAN</dc:creator>
		<pubDate>Fri, 23 May 2008 03:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=549#comment-38750</guid>
		<description>I tried teh above script but it give sme this error-
Msg 102, Level 15, State 1, Line 4
Incorrect syntax near &#039;(&#039;.

Do I have to replace the exact Database name etc somewhere in this script.</description>
		<content:encoded><![CDATA[<p>I tried teh above script but it give sme this error-<br />
Msg 102, Level 15, State 1, Line 4<br />
Incorrect syntax near &#8216;(&#8216;.</p>
<p>Do I have to replace the exact Database name etc somewhere in this script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince</title>
		<link>http://blog.sqlauthority.com/2008/03/27/sql-server-2005-find-index-fragmentation-details-slow-index-performance/#comment-37325</link>
		<dc:creator>Vince</dc:creator>
		<pubDate>Thu, 08 May 2008 17:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=549#comment-37325</guid>
		<description>This modification of the original will return the Parent table name.
USE [your DB]
GO
SELECT ps.database_id, ps.OBJECT_ID, ps.index_id, si.name, ps.avg_fragmentation_in_percent, 
		(SELECT distinct so.name FROM sys.objects so INNER JOIN sys.indexes ON so.object_id = si.object_id) ParentTable
FROM sys.dm_db_index_physical_stats (DB_ID(), NULL, NULL, NULL, NULL) AS ps
INNER JOIN sys.indexes si ON ps.OBJECT_ID = si.OBJECT_ID
        AND ps.index_id = si.index_id
WHERE ps.database_id = DB_ID() AND si.name is not null AND
ps.avg_fragmentation_in_percent &gt; 30 --- min % to return
ORDER BY ps.avg_fragmentation_in_percent desc
GO</description>
		<content:encoded><![CDATA[<p>This modification of the original will return the Parent table name.<br />
USE [your DB]<br />
GO<br />
SELECT ps.database_id, ps.OBJECT_ID, ps.index_id, si.name, ps.avg_fragmentation_in_percent,<br />
		(SELECT distinct so.name FROM sys.objects so INNER JOIN sys.indexes ON so.object_id = si.object_id) ParentTable<br />
FROM sys.dm_db_index_physical_stats (DB_ID(), NULL, NULL, NULL, NULL) AS ps<br />
INNER JOIN sys.indexes si ON ps.OBJECT_ID = si.OBJECT_ID<br />
        AND ps.index_id = si.index_id<br />
WHERE ps.database_id = DB_ID() AND si.name is not null AND<br />
ps.avg_fragmentation_in_percent &gt; 30 &#8212; min % to return<br />
ORDER BY ps.avg_fragmentation_in_percent desc<br />
GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mal</title>
		<link>http://blog.sqlauthority.com/2008/03/27/sql-server-2005-find-index-fragmentation-details-slow-index-performance/#comment-35052</link>
		<dc:creator>mal</dc:creator>
		<pubDate>Mon, 14 Apr 2008 12:00:06 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=549#comment-35052</guid>
		<description>select	tbl.[name] TableName, 
		ind.[name] IndexName,
		mn.index_type_desc IndexType, 
		mn.avg_fragmentation_in_percent [FRAG_%]
  from sys.dm_db_index_physical_stats (null, null, null, null, null )as mn
inner join sys.tables tbl on tbl.[object_id] = mn.[object_id] 
inner join sys.indexes ind on ind.[object_id] = mn.[object_id]
where [database_id] = db_id(&#039;dbSynthetics&#039;)
order by mn.avg_fragmentation_in_percent desc</description>
		<content:encoded><![CDATA[<p>select	tbl.[name] TableName,<br />
		ind.[name] IndexName,<br />
		mn.index_type_desc IndexType,<br />
		mn.avg_fragmentation_in_percent [FRAG_%]<br />
  from sys.dm_db_index_physical_stats (null, null, null, null, null )as mn<br />
inner join sys.tables tbl on tbl.[object_id] = mn.[object_id]<br />
inner join sys.indexes ind on ind.[object_id] = mn.[object_id]<br />
where [database_id] = db_id(&#8216;dbSynthetics&#8217;)<br />
order by mn.avg_fragmentation_in_percent desc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BravehearT1326</title>
		<link>http://blog.sqlauthority.com/2008/03/27/sql-server-2005-find-index-fragmentation-details-slow-index-performance/#comment-34925</link>
		<dc:creator>BravehearT1326</dc:creator>
		<pubDate>Tue, 08 Apr 2008 14:37:40 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=549#comment-34925</guid>
		<description>Hi there - any chance of amending the above script to show the actual table name where the index resides.....

Thanks</description>
		<content:encoded><![CDATA[<p>Hi there &#8211; any chance of amending the above script to show the actual table name where the index resides&#8230;..</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dirty Noodle</title>
		<link>http://blog.sqlauthority.com/2008/03/27/sql-server-2005-find-index-fragmentation-details-slow-index-performance/#comment-34730</link>
		<dc:creator>Dirty Noodle</dc:creator>
		<pubDate>Mon, 31 Mar 2008 15:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=549#comment-34730</guid>
		<description>Can you write the sample script in SQL 2000?  Thanks!</description>
		<content:encoded><![CDATA[<p>Can you write the sample script in SQL 2000?  Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
