Interviews3 answers
What is the difference between scope_identity() and current_identity()?
3 Answers
both will return last inserted value in table but scope_identity is limited to current scope and current session and current_identity is limited to current scope but not limited to current session
Rahul SharmaPosted Oct 19, 2016, 1:04 AM EDT
http://www.mindfiresolutions.com/Difference-between-IDENTITY-SCOPEIDENTITY-and-IDENTCURRENT-in-SQL-SERVER--1177.php
Posted May 13, 2015, 2:50 AM EDT
Scope_identity and current _identity both are similar and it will return the last identity value generated in the table.
Scope_Identity will return the identity value in table that is currently in scope
Ankur JainPosted Aug 18, 2014, 4:39 AM EDT

