Reputation: 69
I was able to insert the data into the table, now suddenly I got this error where the identity element is being updated with a large negative wrong value and the insert operation is restricted.
Could someone let me know what the problem is?
Upvotes: 1
Views: 15197
Reputation: 1813
you are getting this error because the user is trying to insert data in SQL server does not have insert permission on the table. You can give permission insert permission using
GRANT Insert ON yourschemaname.yourtablename TO yourusername;
GO
Upvotes: 6
Reputation: 7
You'll need to do this (presumably) in SQL-Server (SSMS).
Right-click the table in SQL-Server and give INSERT permissions to the user:
Right Click the table Properties Permissions (if necessary) add the user or role click on the user/role permission insert, put a check-mark in the 'grant' box.
Upvotes: 0