Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

Can we consider ALTER TABLE DROP COLUMN SQL server a metadata-only operation?

Asked by Chloe Burgess Sep 14, 2023 1.2K views 1 answer
Share

About this question

 Even though I have found several sources supporting the argument that states ALTER TABLE DROP COLUMN is a metadata-only operation, I want to know how this is possible. Is the data optional to be purged from underlying non-clustered indexes and clustered heap while working on the DROP COLUMN? Also, why does Microsoft Docs say that it is a logged operation?  I also have another question: How does the engine track the dropped columns if the data is not erased from underlying pages? 

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.