Hi!
How do I get id of an insert query? Simple:
insert into Ex(sth) values("value");
select @@identity
does not work. When I try to ExecuteScalar or any other I get exception: {"There was an error parsing the query. [ Token line number = 3,Token line offset = 95,Token in error = select ]"}.
I remind this is the CE edition. I'm using MSVS2010
Thanks for your help.