SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Index Fragmentation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

erescalla
Starting Member

USA
1 Posts

Posted - 11/11/2013 :  18:41:47  Show Profile  Reply with Quote
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

USA
36674 Posts

Posted - 11/12/2013 :  12:29:56  Show Profile  Visit tkizer's Homepage  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000