Usually, we will get this error while inserting the records/data into the identity column.
The reason for this error is,
"We can't explicitly insert data into the identity. If we want to achieve the same, we should first execute the command Identify insert on the table is ON"
Here is a small code snippet,
|
-- WE CAN INSERT THE IDENTITY VALUES EXPLICITLY
|
OOPs, still am getting the same error. The reason is Microsoft SQL Server is insisting us to insert the records with the column specified in the query. Let's sse the actual solution to resolve the same.
|
Cheers,
Venkatesan Prabu .J
Head - WWW.Kaashivinfotech.com
http://venkattechnicalblog.blogspot.com/

Join the conversation! Your thoughts help the community grow.