Tag Archives: sp_MSforeachdb

Iterate through all databases / tables. Is sp_MSforeachdb good idea?

Ever heard of sp_MSforeachdb or sp_MSforeachtable procedures which iterates through all databases or tables? Well you might not because they are undocumented procedures about which Microsoft says are for internal use only and might not work for all scenarios. Also … Continue reading

Posted in Microsoft SQL Server | Tagged , , , , , | Leave a comment