What is the best way to get IDENTITY of inserted row?
IDENTITY
I know about @@IDENTITY and IDENT_CURRENT and SCOPE_IDENTITY
@@IDENTITY
IDENT_CURRENT
SCOPE_IDENTITY
ALWAYS use scope_identity(), there's NEVER a need for anything else.