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 2008 Forums
 Transact-SQL (2008)
 defragmentation or rebuild index

Author  Topic 

santhosh3477
Starting Member

2 Posts

Posted - 2012-05-28 : 07:58:56
I am using sql server 2008.

I am trying to reduce fragmentation and i run the query as

ALTER INDEX ALL ON [tablename] REBUILD still fragmentation remains 66.77% , the number of rows in this table are 4077.

The other tables are reducing the fragmentation to 0% while i use the same above query.

Please suggest why it is not defragmenting the indexes.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2012-05-28 : 08:57:58
Which specific index is not rebuilded?



N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page

Sachin.Nand

2937 Posts

Posted - 2012-05-28 : 09:33:02
quote:
Originally posted by santhosh3477

I am using sql server 2008.

I am trying to reduce fragmentation and i run the query as

ALTER INDEX ALL ON [tablename] REBUILD still fragmentation remains 66.77% , the number of rows in this table are 4077.

The other tables are reducing the fragmentation to 0% while i use the same above query.

Please suggest why it is not defragmenting the indexes.



How many data pages does the table have ? I wouldn't be concerned if the no of pages are not more than 1000 .

After Monday and Tuesday even the calendar says W T F ....
Go to Top of Page
   

- Advertisement -