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!

SQL server - Permission issues : Execute permission denied on object '

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,

 
Create a database role called "WebUsers" or something like that.

Then grant execute writes to the necessary stored proces to the WebUsers database role. Make all your users members of the WebUsers database role.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top