Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*This generates scripts to Grant Select on all views to a user %USER% */
- SELECT 'GRANT SELECT ON ' + TABLE_NAME + ' TO %USER%'
- FROM INFORMATION_SCHEMA.Views
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement