SQL Server October 22nd, 2018 sp_ineachdb : Execute a Command in the Context of Each Database – Part 2 Some additional details about this sp_MSforeachdb (and sp_foreachdb) replacement.