I'm having the issue where @@identity returns null.
I've seen several responses that @@identity is a session variable.
I'm coding directly with ado.net(sqlserverce)
I execute my insert and then do a select for @@identity.
I don't see the connection state changing to closed between the calls.
In addition I get the exact same behavior if I run the query analyzer.
Most posts I see mention the query analyzer works for them with @@identity.
Is there som property of the engine I need to set or something?
I'm running sqlserverce 4 swith visual studio 2011.