I also read recently that when using @@IDENTITY to get the value that was inserted in an identity column, you may get an incorrect value if the table has a trigger defined. That's when SCOPE_IDENTITY is a better choice.
IDENT_CURRENT can be used to get the last identity that was inserted into a table, irrespective of the connection. For more, browse over to: http://www.sqlteam.com/item.asp?ItemID=319
posted by Nitin Reddy Katkam at 3:44 PM on Aug 18, 2006
Untitled
No comments yet. -