What is the tsql cmd to disable and enable all indexes of a table at once.
I am tryingto do something like this in a job.
1.Disable INDEX (ALTER INDEX ALL ON table DISABLE)
2.ALTER TABLE Alter column collation
3.Enable INDEX (ALTER INDEX ALL ON table ENABLE)
Cud some one let me know whats the difference or Pros/Cons between
Drop/Create Index and Disable/Enable.
Thanks