what is the use of scope_identity in sql
In this article, we will see how to use @@IDENTITY and SCOPE_IDENTITY() in SQL Server 2012.This is a question which is frequently asked in many sites about @@IDENTITY and SCOPE_IDENTITY(). Both are used to return the last inserted identity value in the current session. Here, we will see the difference between them.n this article, we will see how to use  @@IDENTITY and SCOPE_IDENTITY() in SQL Server 2012. This is a question which is frequently asked in many sites about @@IDENTITY and SCOPE_IDENTITY().