Thank this author by sharing:
By Brian Knight,
For more information on sp_msforeachtable, please read the archived article.
We will get the brief idea about undocumented procedure sp_MSforeachtable of the Master database.
Is there a way to insert the output from the sp_msforeachtable proc in to a table.
the query i am t...
How to avoid some tables while using msforeachtable?
the best way is to switch to your own cursor,...
sp_MSforeachdb & sp_MSforeachtable