crashwave

Script Grant SELECT (Execute) on All Scalar functions

Jan 27th, 2021 (edited)
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. /*This generates scripts to Grant EXECUTE on all scalar function*/
  2. select 'GRANT EXECUTE ON ' + name + ' TO %USER%'
  3. from sys.objects
  4. where ( type LIKE '%fn%')
  5. AND is_ms_shipped = 0
Add Comment
Please, Sign In to add comment