What query can I run to simply see whether a user has privelege to execute a stored procedure.
lets say user is UserA
and stored procedure name is my_stored_proc
I want to know whether UserA
has execute permission on my_stored_proc
UserA is not the owner of the storedproc. Some other owner grants him the permission.