Wednesday, 21 February 2018

MSSQL - Rebuild all indexes in seconds

Watch on YouTube



Exec sp_MSforeachtable @command1 = "print '?' DBCC DBREINDEX ('?',  '  ' , 80)"
GO

Exec sp_updatestats
GO

No comments:

Post a Comment