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
To insert explicit values into the identity column , do the following :
SET IDENTITY_INSERT Tbl_Cartoons ON GO -- code to insert explicit ID values SET IDENTITY_INSERT Tbl_Cartoons OFF GO