Solved

Rebuild Index does not defragment  in SQL 2005

Posted on 2013-01-08
2
353 Views
Last Modified: 2013-01-09
Hi,

Rebuild Index does not defragment

I have a usertable (Avg 80%) after rebuilding, it is still showing 80%, Why it showing same.
Like this i having some problem with many tables.
I am using Sql Server 2005 Standard Edition.
0
Comment
Question by:spkvijay
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Expert Comment

by:Steve Wales
ID: 38754696
Is it a small table/index ?  On a small index, rebuilding it doesn't necessarily reduce fragmentation, see the documentation - check in the section under Rebuilding Indexes
0
 
LVL 2

Accepted Solution

by:
RRobinho earned 500 total points
ID: 38757877
Agree with sjwales
I am guessing these indexes are very small.

Rebuilding of very small indexes will still look fragmented because objects that are small like this are stored on mixed extents which can be shared by different objects

If you try the same thing on a larger index you will see that this won't happen because there are enough pages in the larger one for it to have its own extents that are allocated to just that object
So i will suggest you to defragment your table or the whole database if rebuilding the indexes is not enough to avoid  fragmentation problem
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Merige returns error code when updating 15 57
Delete from table 6 48
Need help how to find where my error is in UFD 6 47
tempdb log keep growing 7 45
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question