Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp.net :Execute permission denied on object 'SprocName'

Status
Not open for further replies.

sujal

Programmer
Joined
Sep 9, 2005
Messages
10
Location
US
I have an ASP.NET application that uses Integrated Windows authentication. My Web.config looks like below

<add key="dbconnection" value=" server=XXX;Initial Catalog=XXX;persist security info=False;Integrated Security=SSPI;Pooling=true" />

When users try to access my application, they get the below error:

Execute permission denied on object 'SprocName', database 'DBNAME',Owner,'dbo'

The Only way I could get rid off the error is if I set DBO permissions for the user group on the databse.

Can someone suggest how to set up a security group with the ‘necessary’ permissions on SQL SERVER (ie read,write execute Sproc etc) and not too many extra ones, like DBO.

Thanks,


 
When the proc was created, were EXECUTE permissinons granted to public?

Jim
 
I don't remember granting any permission when I created the Sproc. How to enable that now?

Also it should allow only 'Windows authenticated users' who access the system and not public.
 
Grant execute on <sp name> TO public


The restricton to who can access it should be done in your front end app. If the user is not authenticated they can't execute it, from the app anyway.
 
Thanks. How can I grant this on all objects on the DB
 
Glad to help.

You should only have to worry about granting execute permissions to each SP.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top