If I grant execute permissions to a role via
GRANT EXECUTE ON [DBO].[MYPROC] TO MY_ROLE
what's the equivalent syntax to remove them?
REVOKE EXECUTE ON [DBO].[MYPROC] TO MY_ROLE
DENY EXECUTE ON [DBO].[MYPROC] TO MY_ROLE
or
REVOKE EXECUTE ON [DBO].[MYPROC] TO MY_ROLE
depending on your goal. The first acts as a filter for any granted permissions, the second removes an explict permission.
DENY EXECUTE ON [DBO].[MYPROC] TO MY_ROLE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With