How to grant a privileges to execute particular stored procedure or function to a user on specific database

How to grant a privileges to execute particular stored procedure or function to a user on specific database?

Like this:

grant execute on dbname.procname to username;

1 Like