Skip to content

Instantly share code, notes, and snippets.

@yurifedoseev
Created December 6, 2013 07:01
Show Gist options
  • Save yurifedoseev/7819695 to your computer and use it in GitHub Desktop.
Save yurifedoseev/7819695 to your computer and use it in GitHub Desktop.
rebuild all indexes
sp_MSforeachtable 'alter index all on ? reorganize'
go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment