Are you referring to the process of removing fragmentation from the database to improve performance? If yes, then you will need to do one of the following.
1) Run DBCC DBREINDEX ('tablename','',0) for each table.
See SQL BOL for more options.
2) Drop and recreate indexes. If a table has a clusered index, you only need to drop and recreate that index. SQL Server will rebuild all others.
If you have something else in mind, please provide more details.
If you want to get the best answer for your question read faq183-874 and faq183-3179. Terry L. Broadbent - DBA
SQL Server Page:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.