• sp_msForEachDB would do.

    You could also check out my humble replacement[/url]

    -- Gianluca Sartori