Re: SQL Server 2005 Database Security
- From: "Laurentiu Cristofor [MSFT]" <Laurentiu.Cristofor@xxxxxxxxxx>
- Date: Thu, 16 Nov 2006 10:25:21 -0800
There are several ways you can achieve this in SQL Server 2005:
(1) You can have the procedures signed with certificates that grant them
access to the tables, and then you just need to grant execute permission on
the procedures to the users
(2) You can have the proceduures impersonate a principal that has access to
the tables, and then you just need to grant execute permission on the
procedures to the users
(3) You can use ownership chaining by having the procedures being owned by
the same principal as the tables, and then you just need to grant execute
permission on the procedures to the users
Thanks
--
Laurentiu Cristofor [MSFT]
Software Development Engineer
SQL Server Engine
http://blogs.msdn.com/lcris/
This posting is provided "AS IS" with no warranties, and confers no rights.
"Victor" <Victor@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BE15EE7D-39C3-4DD7-93D0-C72D7CAD7E04@xxxxxxxxxxxxxxxx
Hello,
I would like to provide a level of security for a database by allowing a
login just to call a set of stored procedures in the database and not be
able
to access the tables directly.
Looks to me like a very basic thing to ask for. However, there doesn't
seem
to be an obvious way to achieve this. If one of the stored procedures
reads/writes from/to a table, I have to grant the appropriate permissions
to
that login and therefore that login can perform any read/write from/to the
table - without being restricted to the way the stored procedure does
these
operations.
Can someone (maybe someone in Microsoft) explain how to achieve what I
want
- or, alternatively state that you just can't do this in SQL Server 2005?
Thanks,
Victor
.
- Prev by Date: Re: OK - I'm stupid....How do you create a user?
- Next by Date: Re: OK - I'm stupid....How do you create a user?
- Previous by thread: Re: SQL Server 2005 Database Security
- Next by thread: Re: Login failed for user '(null)'
- Index(es):
Relevant Pages
|
|