Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Index Fragmentation

Author  Topic 

erescalla
Starting Member

1 Post

Posted - 2013-11-11 : 18:41:47
Hello guys
I'm SQL Developer and SQL admin in my company. I'm having problem desfragmenting some index in my database and i did everything always do.
but the indexes stil have the same fragmentation over 80 percent in many cases. following some examples of what I do.
1- ALTER INDEX all ON dbo.salesorder REBUILD
2- UPDATE STATISTICS dbo.salesorder WITH FULLSCAN;
When this does not solver the problem i Execute the following sentence
for evry index CREATE NONCLUSTERED INDEX IX-Index_name ON dbo.SalesOrder
--(
-- Index field
--) WITH DROP_EXISTING
But the fragmentation is the same
how can I reduce the fragmentation to 0 or the lower value under 30 percent. What i am doing wrong.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2013-11-12 : 12:29:56
How many rows are in those tables and how many pages in the index? Some indexes can't be defragmented due to their small size.

But why does it matter if they are over 80%? Are you having a performance issue?

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -