Need help to GRANT ALTER only to all the SQL Server Functions.
Below is mycode:
GRANT ALTER ON FUNCTION::dbo TO [username]
Need help to GRANT ALTER only to all the SQL Server Functions.
Below is mycode:
GRANT ALTER ON FUNCTION::dbo TO [username]
Copyright © 2021 Jogjafile Inc.
According to the MS documentation,
ALTER FUNCTIONrequires ALTER permission on the function itself or the schema. You can't grant ALTER on all functions without allowing ALTER on other objects.You should set up a role with the required permissions and then add users to that role.
etc.
If you edit the role properties in SSMS, the "securables" page allows you to search for "all objects of the types..." and you can pick the types for functions.