Great SQL Server Tip
A couple of great blog articles on sp_msForEachTable. This is an undocumented stored procedure.
http://www.shanedevane.net/msforeachtable
http://blog.sqlauthority.com/2007/01/31/sql-server-reindexing-database-tables-and-update-statistics-on-tables/






