Skip to content
Home ยป how to get last generated identity value in sql

how to get last generated identity value in sql

SQL SERVER @@IDENTITY

SQL Server @@IDENTITY function is a system function that is used to get the last IDENTITY value generated for any table with an identity column under the current session, regardless of the scope of the T-SQL statement that generated the value.

Loading