January 31, 2006 at 10:23 pm
January 31, 2006 at 10:36 pm
Yes it does, and it is the most optimal way to recreate an index.
There's more info on the DBCC REINDEX command in BOL.
January 31, 2006 at 10:49 pm
February 1, 2006 at 3:24 am
How did you check that NON clustered is not rebuilt?
February 1, 2006 at 3:22 pm
February 1, 2006 at 3:36 pm
>>Does rebuilding a Clustered Index automatically rebuild all Non Clustered Indexes on a Table?
No.
It depends on whether the Clustered Index (CI) is unique or not.
If you want to be sure, execute this:
DBCC DBREINDEX ('Act', '', 90)
This will rebuild all indexes and will build the CI first, then the non-CI.
February 1, 2006 at 3:50 pm
February 1, 2006 at 4:03 pm
>>Thats fair enough PW but the Clustered Index in this case is Unique as it is the Primary Key
Sorry, I should have been clearer. When the Clustered Index is unique, then the non-clustered are not rebuilt.
So what you observed is to be expected.
The reason is that if the CI is unique, the keys needed for bookmark lookups in the other indexes will not change, therefore no need to touch them.
February 1, 2006 at 4:08 pm
February 1, 2006 at 4:31 pm
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply