Skip to content
Home ยป how to get last identity value inserted in table

how to get last identity value inserted in table

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