• Very handy sp, i modified it so it validates the database name parameter against a whitelist of DBs we want to allow this to run against.

    Always use whitelists. Blacklists eventually result in something happening accidentally because you forgot to maintain the list.