I am importing data from Table X to Table Y, so I am programming the script, so I want the identity for the ID
column in Table Y turned off, then I import the data and then turn it back on.
I did as following
SET IDENTITY_INSERT [project] ON;
// Script for inserting Data Comes here
SET IDENTITY_INSERT [project] OFF;
but I get this error message
An explicit value for the identity column in table 'project' can only be specified when a column list is used and IDENTITY_INSERT is ON.
What I have done wrong?