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 2000 Forums
 SQL Server Administration (2000)
 How to predict space gain after REBUILD INDEX?

Author  Topic 

sql_er
Constraint Violating Yak Guru

267 Posts

Posted - 2008-07-29 : 16:54:40
Folks,

From my experience, rebuilding indexes (while might require addition space to be done), frees up (sometimes a lot of) space after the procedure is completed.

My question is: Is there a way to know exactly (or approximately) how much space will be regained after the REBUILD INDEX is done with [i.e. without performing the actual REBUID INDEX]?


Thanks a lot!

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-07-29 : 16:57:40
No.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-07-29 : 22:25:01
You can run 'dbcc showcontig' and look at 'Avg. Page Density (full)', it should close to 100% (depends on row size) after rebuild clustered index if you don't specify fill factor. Compare two results to get idea roughly.
Go to Top of Page
   

- Advertisement -