i m using sqlserver 2005 i have a table that has the primary key set as identity i want to make that off insert one row and value that column that is set as identity and then again make that on and i want to do that through sql script.
set identity_insert FINISH on insert into FINISH values('-1','None Selected') set identity_insert FINISH off
and getting error this
Msg 8101, Level 16, State 1, Line 1 An explicit value for the identity column in table 'FINISH' can only be specified when a column list is used and IDENTITY_INSERT is ON.
set identity_insert FINISH on insert into FINISH values('-1','None Selected') set identity_insert FINISH off
and getting error this
Msg 8101, Level 16, State 1, Line 1 An explicit value for the identity column in table 'FINISH' can only be specified when a column list is used and IDENTITY_INSERT is ON.