I want to set Is Identity property of a column to off and after inserting an explicit value setting it to on again.I\'ve written this query :
SET IDENTITY_INSERT
Set identity_insert on to be able to explicitly set the value of the id column. Set it off again to auto-assign.