Quantcast
Viewing latest article 3
Browse Latest Browse All 8

Answer by ramesh 1

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 latest article 3
Browse Latest Browse All 8

Trending Articles