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.
    
        | 
                
                    | 
                            
                                | Author | Topic |  
                                    | erescallaStarting Member
 
 
                                        1 Post | 
                                            
                                            |  Posted - 2013-11-11 : 18:41:47 
 |  
                                            | Hello guysI'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 REBUILD2- UPDATE STATISTICS dbo.salesorder WITH FULLSCAN;When this does not solver the problem i Execute the following sentencefor evry index CREATE NONCLUSTERED INDEX IX-Index_name ON dbo.SalesOrder--(--   Index field--) WITH DROP_EXISTINGBut the fragmentation is the samehow can I reduce the fragmentation to 0 or the lower value under 30 percent. What i am doing wrong. |  |  
                                    | tkizerAlmighty 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 KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |  
                                          |  |  |  
                                |  |  |  |