tags:

views:

81

answers:

2

I want to give a user access to a stored procedure, but not to all the objects in the database the stored procedure needs to use.

What is the best way to give rights to the stored procedure to enable it to work, but only grant execute access to the user to run it.

I am using sql server 2000 sp4.

+2  A: 

try

exec grant exec ON 'myprocname' TO 'myusername'

Chris Lively
+3  A: 

From MSDN

Users can be granted permission to execute a stored procedure even if they do not have permission to execute the procedure's statements directly

Jeff Hall
+1 for looking it up.
Tomalak