@@IDENTITY vs SCOPE_IDENTITY()
I have read a number of books/articles and I wonder why they always use the global variable @@IDENTITY in obtaining the generated identity after an INSERT operation. They should be using SCOPE_IDENTITY() instead which is safer due to triggers. With SCOPE_IDENTITY(), is there really a use for @@IDENTITY?