Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 stored procedure permissions

Author  Topic 

chedderslam
Posting Yak Master

223 Posts

Posted - 2008-06-12 : 10:13:37
What role does a user have to be in to execute a stored procedure?

I am trying to run an exec statement from a web app and am getting "The EXECUTE permission was denied".

Thanks.

chedderslam
Posting Yak Master

223 Posts

Posted - 2008-06-12 : 10:22:18
I can execute other stored procedures, just not the one I just created. Why would that be?
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-06-12 : 10:32:03
What's the context under which you're executing it?
Go to Top of Page

chedderslam
Posting Yak Master

223 Posts

Posted - 2008-06-12 : 10:36:48
It's a call from a web app logged into an account I created.

I looked at the permissions properties of the other stored procedures and this one. The other stored procedures have the public role with execute permission. The stored procedure I created has nothing under permission properties. I added the public role and gave it execute permissions and now it works. But that would mean that I have to go in and add the public role every time I create a new stored procedure. Is that normal or am I doing something wrong?

Thanks.
Go to Top of Page
   

- Advertisement -