• Vishal, I forgot to add one additional note. The preceding does seem to be executed on every DB (except the four that are excluded), but for each of the executions (eleven for this particular SQL Server instance), it seems to be running on the [Utility] database, rather than the eleven databases used by the sp_MSforeachdb.