What permissions are required for a user to run a stored procedure which includes the SET IDENTITY_INSERT statement?
Books On Line states:
"Execute permissions [for SET IDENTITY_INSERT] default to the sysadmin fixed server role, and the db_owner and db_ddladmin fixed database roles, and the object owner."
If I do not wish a user to become part of these server and database roles, and the user is not the owner of the table being updated, what priveledges do I need to grant them so they can execute a stored procedure containing the statement?
Despite advice in past threads against use of the SET IDENTITY_INSERT statement, I must use this statement to allow a set of records to be 'reinstated' to a table from another table acting much like a clipboard.
Thanks for your help
Graham Robbins
BCS
Books On Line states:
"Execute permissions [for SET IDENTITY_INSERT] default to the sysadmin fixed server role, and the db_owner and db_ddladmin fixed database roles, and the object owner."
If I do not wish a user to become part of these server and database roles, and the user is not the owner of the table being updated, what priveledges do I need to grant them so they can execute a stored procedure containing the statement?
Despite advice in past threads against use of the SET IDENTITY_INSERT statement, I must use this statement to allow a set of records to be 'reinstated' to a table from another table acting much like a clipboard.
Thanks for your help
Graham Robbins
BCS