Quote:
|
Originally Posted by ARWinner
That is its sole purpose in life. Just be sure to use it right after the insert and before any commit.
Andy
|
Thanks man, you're the hero of the day!
Another question: Is the IDENTITY_VAL_LOCAL() always returning the id of the row that i inserted in my query? Or is it possible that I insert a row, and another person inserts a row a millisecond after and when I use the IDENTITY_VAL_LOCAL() I get the id that was created for the user that created the 2:nd row?