I have a large primary key clustered index I need to drop. I believe dropping it will also trigger index rebuilds on the nonclustered indexes (which are also pretty big). Is there a way to determine the progress of these processes?
Sql-server – Is it possible to track the progress of when I drop a the primary key clustered index on a table
clustered-indexnonclustered-indexprimary-keysql serversql-server-2016
Related Question
- Sql-server – Duplicate non-clustered index on Primary Key, can I drop one of them
- Sql-server – Change clustered index without dropping the primary key
- Sql-server – Ordering of table is based on Clustered index or non clustered primary key
- Sql-server – Difference between a unique clustered index and a clustered primary key
- Sql-server – Clustered vs Non Clustered Indexes for a Primary Key
- Sql-server – Adding a clustered index to a heap table
- Sql-server – ny difference with specifying the primary key as an include column in a nonclustered index
Best Answer
If you are using Enterprise Edition or equivalent, you can drop the primary key
ONLINE
:This will allow you to monitor progress using the Profiler Event Class Progress Report: Online Index Operation or the Extended Event:
It provides the following event fields: