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
After Your Insert Statement you need to add this. And Make sure about the table name where data is inserting.You will get current row no where row affected just now by your insert statement.
IDENT_CURRENT('tableName')