hi,
This error comes when we have a Identity Specification is
‘Yes’ and IsIdentity is also ‘Yes’, Identity Increament is set
to(1/2/…).
So you are unable to insert this type of row, because sql know that
the Test_Id is the Identity_Column and so you cannot insert the value
which already inserted. So to resolve this error, you have to set the
Column_Identity ON by using the following syntax.
SET IDENTITY_INSERT tblOrderItemStatus ON
Then try to insert the row using the above same query, which was as following:
Insert Into tblTest(Test_Id,Test_Name) values(2, “TestTemp2″)
Now you need to reset the Column_Identity OFF. You can do it just by the following syntax:
SET IDENTITY_INSERT tblOrderItemStatus OFF
Hope this will help you