Skip to content
  • There are no suggestions because the search field is empty.

T-SQL Script: Rebuild all indexes

T-SQL Script: Rebuild all indexes

-- Rebuild all indexes (use with caution!)
EXEC sp_MSforeachtable 'ALTER INDEX ALL ON ? REBUILD';