• ScottPletcher (3/26/2013)


    sp_MSforeachdb is indeed a cursor, and not a particularly good one.

    Still, it exists, and it's useful for quick-and-dirty tasks sometimes, particularly if you don't have a lot of dbs.

    ...

    And has the dubious honor of being an undocumented procedure as well.