• Nice Script. If anyone do not want to drop the user just change that to "Select" so that you can check what are the results before droping the user.

    select@sql = 'use [' + DB + ']; select user [' + UserName + ']'

    Thanks.