Created
May 13, 2016 21:20
-
-
Save vgerbase/c3806559281ed747e5e0dc3385d5764f to your computer and use it in GitHub Desktop.
Script to create a role to grant view definition permission in all objects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Create a db_viewdefinition role | |
CREATE ROLE [db_viewdefinition] AUTHORIZATION [dbo]; | |
-- Grant view definition rights to the new role | |
GRANT VIEW DEFINITION TO [db_viewdefinition]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment