Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exec sp_MSforeachtable @command1 = '
- print(''use ''+db_name()+''; dbcc dbreindex(''''?'''')'','''''''',80)
- '
- exec sp_MSforeachtable @command1 = '
- print(''use ''+db_name()+''; dbcc dbreindex(''''''+object_name(object_id(''?''))+'''''','''''''',80)'')
- '
Add Comment
Please, Sign In to add comment