May 21, 2008 at 9:47 am
I have a table which is more or less a system table for the software product. The data is to provide a drop down list for various windows.
I realize this is not a performance hit but I can't for the life of me understand why if I try to defrag the table and its clustered index that the fragmentation doesn't go below 80%
May 21, 2008 at 10:24 am
How large is this table? How many rows/pages?
Small tables will always show a level of fragmentation, and any table with less than 1000 pages is not going to show any improvement in performance be rebuilding or reorganizing the index.
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 21, 2008 at 10:33 am
Jeff,
That's it, I was ignoring the page count...these are all small tables well under 1000, testing out the new SQL Admin tool from Idera on Quick Reindex and saw this...thanks
May 21, 2008 at 2:48 pm
Can you please tell me where can you see page count.
May 21, 2008 at 3:15 pm
Sure run DBCC SHOWCONTIG
Pages Scanned tells you the page count
May 22, 2008 at 11:26 am
In SQL Server 2005 you can also see the page_count in the dynamic management view
sys.dm_db_index_physical_stats.
I have a stored procedure that is using sys.dm_db_index_physical_stats to dynamically rebuild / reorganize your indexes.
http://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html
Ola Hallengren
May 23, 2008 at 8:42 am
Ola Hallengren (5/22/2008)
In SQL Server 2005 you can also see the page_count in the dynamic management viewsys.dm_db_index_physical_stats.
I have a stored procedure that is using sys.dm_db_index_physical_stats to dynamically rebuild / reorganize your indexes.
http://blog.ola.hallengren.com/blog/_archives/2008/1/1/3440068.html
Ola Hallengren
There is also one in BOL.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply