4 posts about SCOPEIDENTITY by 4 contributors.
Know SCOPEIDENTITY? Share what you know with developers who are learning it.
In this article, we will see how to use @@IDENTITY and SCOPE_IDENTITY() in SQL Server 2012.
This article will show the differences among scope_identity (), @@identity and ident_current.
In this article, I am explaining how to get the last inserted identity value of an auto-increment column of database tables using SQL Server variable (@@IDENITY) and functions (SCOPE_IDENTITY() and IDENT_CURRENT()). Both @@IDENTITY and SCOPE_IDENTITY() return the last identity value that is produced in a single session; in other words, a connection while IDENT_CURRENT() returns the last identity value according to the table for any session.
This article explains @@Identity, Scope_Identity() & Ident_Current('Table_Name') in SQL.
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterPublish an article in this category and earn +1,000 SHARP when it is approved.
Write an article