I'm using ASP.NET so in a multi-user environment this is impractical.
I even doubt the identity stuff can help me with this.
They speak about threading but all users are in the main thread pool (iis)
Since i open the db on masterpage load and free it on unload, i'm not sure
the connection is shared among users, never tested that aspect.
There are three ways to retrieve the last identity value:
@@IDENTITY, IDENT_CURRENT() and SCOPE_IDENTITY(). They
behave differently exactly in respect to sharing sessions/tables.
Refer to BOL for more info.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.