View difference between Paste ID: 82NPFX8W and UKfLey84
SHOW: | | - or go back to the newest paste.
1
exec sp_MSforeachtable @command1 = '
2
	print(''use ''+db_name()+''; dbcc dbreindex(''''?'''')'','''''''',80)
3
'
4-
4+
5
exec sp_MSforeachtable @command1 = '
6
	print(''use ''+db_name()+''; dbcc dbreindex(''''''+object_name(object_id(''?''))+'''''','''''''',80)'')
7
'