Hi Bob, sp_MSforeachtable stored procedure is a undocumented stored procedure. It is always best to avoid any undocumented procedure in a production environement. Regards, Balaji > Is sp_MSforeachtable the best approach to maintain the rebuilding of all > indexes > for all tables in a database? > thanks in advance, > ..bob



