With following code,I have identity_insert turned on to be able to insert some value explicitly:
SET IDENTITY_INSERT dbo.myTable ON
Go
the identity insert is set to be primary key and not null
in my c# program,when i want to insert a value,this error is generated:
IDENTITY_INSERT is turned off
but i have turned it on
what's the problem and how to solve it?
thank you