• http://www.sqlservercentral.com/scripts/Permissions/76450/

    read the comments as well for final version

    ---------------------------------------------------------------------