Re: Execute stored procedure only
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Fri, 7 Sep 2007 21:24:45 +0000 (UTC)
Andy (Andy@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
I want to create a user call "limited" in sql 2005. This user should not
be able to do anything (Select, alter, create update.....etc ) Only
right to execute stored procedure in database called "mydatabase". In
the permission column in database I am selecting the user and checked
deny on every permission and checked grant on execute.
When I try to execute stored procedure I am getting folowing error
" Msg 916, Level 14, State 1, Line 1
The server principal "limited" is not able to access the database
"mydatabase" under the current security context.
Msg 2812, Level 16, State 62, Line 4
Could not find stored procedure 'dbo.spabc123'.
Am I way out in my thinking that this is possible and has to be done this
was, or is there a better way?
I want to make sure all other rights are specfically denied.
I don't think so. It appears that you want to grant the user CONNECT
permission. Else you would not be complaining about that error.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Prev by Date: Re: Linked Server Access
- Next by Date: Re: Cannot Drop Users
- Previous by thread: Re: Linked Server Access
- Next by thread: Re: Execute stored procedure only
- Index(es):
Relevant Pages
|