got an issue with identity columns in Sql Server CE
when using Server explorer, in VS2008, executing the following script
SET IDENTITY_INSERT testTable ON; Insert into testTable (id,name) values (1,'Something') SET IDENTITY_INSERT testTable ON;
sends the follow message error 'The Set SQL construct or statement is not supported.' but then inserts the row fine ?!?!?!
anyway, when I try to do the same thing through C#, giving that script as a command text it fails saying the error was in the "Insert key word"
I understand that against SQL SERVER CE the command only accepts one batch command at the time so in that case we have three commands (it would work with the full SQLServer) any idea?