Hello everybody,
I have some stored procedure that move records from a production tables to archive tables and they SET IDENTITY_INSERT ON for the insert and then turn it off afterwards. The procedures do exactly what I am wanting them to do.
My issue is that I would like some of the users to be able to execute this procedure from a form, but the users get an error message because they aren't in the server role that allows them to use the SET command. Is there anyway to execute the stored procedure without assigning the dbowner server role to the user? I would like to pass it as a parameter or temporarily assign this to a user if possible.
Thanks.
nickela
I have some stored procedure that move records from a production tables to archive tables and they SET IDENTITY_INSERT ON for the insert and then turn it off afterwards. The procedures do exactly what I am wanting them to do.
My issue is that I would like some of the users to be able to execute this procedure from a form, but the users get an error message because they aren't in the server role that allows them to use the SET command. Is there anyway to execute the stored procedure without assigning the dbowner server role to the user? I would like to pass it as a parameter or temporarily assign this to a user if possible.
Thanks.
nickela