In case you need to update or insert specific data to SQL Server identity column use following syntax:
SET IDENTITY_INSERT tablename ON
INSERT statement
SET IDENTITY_INSERT tablename OFF
SET IDENTITY_INSERT tablename ON
INSERT statement
SET IDENTITY_INSERT tablename OFF
Comments