I have a stored procedure that is called by users with DataReader and DataWriter rights. This stored procedure is used in the monthly closing for this company. It removes all of the records from the PaidOuts table and then needs to reset the Identity Seed to 0.
When we went live I used:
However, that gave an error stating that the user did not have enough permissions on the table.Code:DBCC CHECKIDENT ('PaidOuts', RESEED , 0)
I then changed the code to:
This, too, gave me the same message. What permissions would be needed to execute one of these statements?Code:TRUNCATE TABLE PaidOuts
Is there any way to have a DataReader/DataWriter user reset the Identity seed for a table?




Reply With Quote