In order to get a stored procedure plan I'm running the following code:
set showplan_all on
exec sp_name param
set showplan_all off
Now I'm wondering if there's any way of doing that without granting execute permissions to the user running this code. After all, this code does not really execute the procedure but rather display it's plan.