I have five domain users and five roles in my database. GRANT EXECUTE
adds to the appropriate roles. Roles are included in other roles, i.e. at most we have one role that has grants for two procedures, below two more roles that have access to four and three procedures, and finally we have two roles. With this solution, if I give the GRANT EXECUTE
permission to the highest role, all roles will have access to this procedure.
My question:
Let's say the procedure has UPDATE
and INSERT
operations. Is it enough to GRANT EXECUTE
to a given procedure for a given role so that the user can use this procedure and actually do UPDATE
and INSERT
on the table, or maybe apart from GRANT EXECUTE
I need to grant the role UPDATE
and INSERT
to all tables within the given procedure?