I have a stored procedure, in one database within my SQL server, that sets permissions to all stored procedures at once for that particulat database. Is there a way to create this stored procedure in a way were I can call it easily from any database within the SQL server and if so how do I go about doing such a thing
Share
You could archive the same result much easier:
create a new role, e.g.
db_executorgrant that role execute permissions without specifying any objects:
This role now has execute permissions on all stored procedures and functions – and it will even get the same permissions for any future stored procedure that you add to your database!
Just assign this role to the users you need and you’re done….