Hello, I would like to use sp_msforeachtable to execute sp_helpstats on each table in a database.
This does not seem to work. Has anyone had success with this?
use MyDb
go
sp_msforeachtable "print 'Table Name:? ' EXEC sp_helpstats '? ', 'STATS'"
go
It complains that the object does not exist.
Thank you. 🙂