Hi all,
I've never been able to get a real answer to this and I'm wondering if anyone can help.
What is the proper best practice to allow a lower-privelige level user to do higher privelige things by proxy.
A simple example is that I want to have a stored procudure that updates a table. 'UserA' does not have rights to this table but I do want to give UserA permissions to update one field in this table *only* via this stored procedure.
So I want to give him Execute permissions for the sp. I can do that, but it fails saying he doesn't have permission on the table.
So bottom line--I want to give him proxy permission to do that update in the sp. Is there any mechanism to allow this in sql-2005?
If not, then how does one go about it when a client application run by a low-privelige user has a need to update tables under which this user normally does not have rights?
Thanks,
--Jim
I've never been able to get a real answer to this and I'm wondering if anyone can help.
What is the proper best practice to allow a lower-privelige level user to do higher privelige things by proxy.
A simple example is that I want to have a stored procudure that updates a table. 'UserA' does not have rights to this table but I do want to give UserA permissions to update one field in this table *only* via this stored procedure.
So I want to give him Execute permissions for the sp. I can do that, but it fails saying he doesn't have permission on the table.
So bottom line--I want to give him proxy permission to do that update in the sp. Is there any mechanism to allow this in sql-2005?
If not, then how does one go about it when a client application run by a low-privelige user has a need to update tables under which this user normally does not have rights?
Thanks,
--Jim