Quantcast
Channel: SQL Server Compact Forum
Viewing all articles
Browse latest Browse all 193

@@identity

$
0
0

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.


Viewing all articles
Browse latest Browse all 193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>