Quantcast
Channel: Answers for "create script for indexes"
Viewing all articles
Browse latest Browse all 8

Answer by ramesh 1

$
0
0
hi i think you can use this script to re index all the databases.here in the script you see,i ms_foreeachtable stored procedure , which is a un documented stored procedure by microsoft. it is fine working in sql server 2005 and 2008. no worries **USE ** **GO EXEC sp_MSforeachtable @command1="print '?' DBCC DBREINDEX ('?', ' ', 80)" GO EXEC sp_updatestats GO**

Viewing all articles
Browse latest Browse all 8

Trending Articles