crashwave

Script Grant Select for all Views

Jan 27th, 2021 (edited)
1,528
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*This generates scripts to Grant Select on all views to a user %USER% */
  2. SELECT 'GRANT SELECT ON ' + TABLE_NAME + ' TO %USER%'
  3. FROM INFORMATION_SCHEMA.Views
  4.  
RAW Paste Data