Hi @OutThere2 ,
Welcome to Microsoft Q&A!
I know the "old index" was still there even after I "dropped" it until the "new index" was built.
Sorry, I am not very clarify for your question. Are you mean disable an index? When you disable an index, the metadata about the index is retained, as are the usage statistics in sys.dm_db_index_usage_stats. The index is not usable by the query optimizer, however. If you have an index hint in a query specifying the index, the query will fail. Also, foreign key constraints are disabled. When you drop an index, the metadata, statistics, and index pages are removed. If you drop a clustered index, the table will become a heap. Once an index has been dropped, it can’t be rebuilt – it must be created again. Please refer to this blog to get more information.
I am confused by something else I read about "unique non-clustered indexes".
Online index operations are not available in every SQL Server edition. As my research, only Enterprise version can do online index create and rebuild, please get the details from RDBMS high availability. The ONLINE option allows concurrent user access to the underlying table or clustered index data and any associated nonclustered indexes during these index operations. If one user is rebuilding an nonclusterd index, that user and others can continue to update and query the underlying data. Please refer to Perform Index Operations Online to get more details.
If I have misunderstanding your question, please let me know.
Best regards,
Carrin
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.