How to turn IDENTITY_INSERT on and off using SQL Server 2008?sql-server-2008
Via SQL as per MSDN The complete error message tells you exactly what is wrong… Cannot insert explicit value for identity column in table ‘sometableWithIdentity’ when IDENTITY_INSERT is set to OFF.