Re: SET IDENTITY_INSERT Privileges?
From: Sue Hoegemeier (Sue_H_at_nomail.please)
Date: 08/27/03
- Next message: Richard Douglass: "encrypting stored procedures"
- Previous message: Satish Balusa: "SET IDENTITY_INSERT Privileges?"
- In reply to: Satish Balusa: "SET IDENTITY_INSERT Privileges?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 26 Aug 2003 17:58:52 -0600
AFAIK, there is no way around this. You can't grant
permissions on the set identity_insert nor can you wrap it
in a stored procedure and give the user execute permission
on the stored procedure to get around this.
It doesn't work like DML statements where when it's in a
stored procedure and the user has execute permissions on the
procedure and ownership chains are intact, the user can
execute the stored procedure and permissions on the
underlying objects aren't checked.
The user needs to be in one of the indicated roles (or the
object owner) to execute the set identity_insert.
-Sue
On Tue, 26 Aug 2003 16:33:28 -0700, "Satish Balusa"
<sbalusa_nospam@corillian.com> wrote:
>We have a "SET IDENTITY_INSERT " statement in a stored procedure and the
>stored procedure has been granted execution privileges to a user 'xyz'. This
>user 'xyz' is Neither a dbo Nor part of db_ddladmin. role. When the stored
>procedure is being executed I get a permission denied msg.
>
>>From BOL
>Execute permissions default to the sysadmin fixed server role, and the
>db_owner and db_ddladmin fixed database roles, and the object owner.
>
>So my question is : How do I grant permission to a SET Statement??
>
>Any help in this regrad is appreciated.
>TIA
>~Sat
>
>
- Next message: Richard Douglass: "encrypting stored procedures"
- Previous message: Satish Balusa: "SET IDENTITY_INSERT Privileges?"
- In reply to: Satish Balusa: "SET IDENTITY_INSERT Privileges?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|