• I am so glad your code didn't simply DELETE the objects that it discovered!

    The last IF EXISTS that I see is now looking at the 'dbo' schema... ooops!