You can use sp_MSforeachtable undocumented stored procedure to rebuild all indexes in your database. Try to schedule it to execute during CPU idle time and slow production periods.
sp_MSforeachtable @command1=”print ‘?’ DBCC DBREINDEX (‘?’)”
sp_MSforeachtable @command1=”print ‘?’ DBCC DBREINDEX (‘?’)”
No comments:
Post a Comment