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 

Jay99

468 Posts

Posted - 2001-04-17 : 15:58:21
I was just trying to figure out how to write a stored procedure to run DBCC dbreindex for each of the tables in my database so that I could schedule a job to do this each night. I was trying to figure out how to write the proc without a CURSOR, and then . . .

I found http://www.umachandar.com/technical/SQL6x70Scripts/UtilitySPs/Main7.htm

Thank you umachandar . . .who ever you are



Jay
   

- Advertisement -