Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 sp_MSforeachtable

Author  Topic 

izaltsman
A custom title

1139 Posts

Posted - 2001-09-28 : 08:50:08
Hi, all!

I have a job that runs the following command to reindex all my tables every night:

sp_MSforeachtable @command1="print '?' dbcc dbreindex ('?')"

Used to work great up until a couple of days ago. Now it hangs, and blocks sysindexes table, so that other people can't even get the table list in the Enterprise Manager. Any ideas?

   

- Advertisement -