SCOPE_IDENTITY SQL Server
In this article, I’m going to deep-dive into one of the most essential, yet often misunderstood, functions in T-SQL: SCOPE_IDENTITY(). SCOPE_IDENTITY SQL Server What is SCOPE_IDENTITY() in SQL Server At its core, SCOPE_IDENTITY() is a scalar function that returns the last identity value inserted into an identity column in the same scope. In SQL Server, … Read more