July 22, 2005 at 3:15 pm
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
July 22, 2005 at 4:22 pm
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
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy