Advertisement
tei219

database_alltable_dbcc_dbreindex

Oct 4th, 2011
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.11 KB | None | 0 0
  1. exec sp_MSforeachtable @command1 = '
  2.     print(''use ''+db_name()+''; dbcc dbreindex(''''?'''')'','''''''',80)
  3. '
  4.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement