re: Recommending @@Identity? I Woudn't.

| No Comments | No TrackBacks
This is a prety interesting topic as I find myself using @@identity ALL THE TIME !!!

If I understand well, what you mean is that if you use @@identity after inserting a row in a table (let say the new indentity created has the value 50) but a trigger as fired for that table, the trigger might create an other row in an other table which might generate an other identity value let say 480.
Which would mean that select @@identity would return 480 instead of 50?

If so how should i do to retrieve the correct identity? Or should i never used identity fields?

Thank you,

Francois

No TrackBacks

TrackBack URL: http://betav.com/blogadmin/mt-tb.cgi/1872

Leave a comment

Pages

Powered by Movable Type 4.21-en

About this Entry

This page contains a single entry by William Vaughn published on September 29, 2005 2:27 AM.

re: Katrina and How we Got into this Mess was the previous entry in this blog.

re: Recommending @@Identity? I Woudn't. is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.