revoking permissions

  • Is there a way I can revoke about hundreds permissions all at once from the public role? I need to remove the select permission from public for every stored procedure in master. I know I could do it manually but there has got to be another way. Grateful for any suggestions! Thanks

  • Run this

    select 'revoke execute on ' + name + ' from public' from sysobjects where type = 'p'

    in the database to generate the 'revoke' commands, then run the generated commands

     


    And then again, I might be wrong ...
    David Webb

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply