Re: Sql Server - Basic Permissions Question
- From: "David Browne" <davidbaxterbrowne no potted meat@xxxxxxxxxxx>
- Date: Sun, 27 Aug 2006 21:37:59 -0500
"Ranginald" <davidwank@xxxxxxxxx> wrote in message
news:1156718450.101845.48600@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a SQL Server database and I want a user to be able to execute
stored procedures only. These stored procedures use SELECT and WHERE
statements and return integers.
I have set EXECUTE permissions to the sp's as needed for the user.
It is possible to allow a user to have EXECUTE permissions on the sp's,
but deny everything else? E.g. If id did denyreader and allowed
EXECUTE on the sp's, would the command fail because the sp's have
SELECT and WHERE statements?
Basically this will work.
Look up "ownership chains" in BOL. Whan a user is granted EXECUTE on a
stored procedure, SELECT (and other) permissions checks are supressed
durring the execution of the stored procedure so long as the owner of the
target table is the same as the owner of the stored procedure.
David
.
- References:
- Sql Server - Basic Permissions Question
- From: Ranginald
- Sql Server - Basic Permissions Question
- Prev by Date: Sql Server - Basic Permissions Question
- Next by Date: Re: Sql Server - Basic Permissions Question
- Previous by thread: Sql Server - Basic Permissions Question
- Next by thread: Re: Sql Server - Basic Permissions Question
- Index(es):
Relevant Pages
|