Ok Hal, I see what you mean. I think my confusion was that I was making the assumption that others do such insertion tasks similar to the way I do them, which is one of two ways:
Open Connection
Insert Row
...
Request @@IDENTITY
Close Connection
OR
Open Connection
Insert Row; Request @@IDENTITY;
Close Connection
I suppose your scenario is possible if you perform one action, then close the connection, then open again (getting another connection from the pool) and attempt to get the identity value.
|