Returning the last identity value generated for a specified table:
Following example returns the last identity value generated for the Person.Address table in the AdventureWorks2012 database.USE AdventureWorks2012;
GO
SELECT IDENT_CURRENT ('Person.Address') AS Current_Identity;
GO
OR
Following example returns the last identity value generated for the College:USE College;
GO
SELECT IDENT_CURRENT ('Student') AS Current_Identity;
GO
Conversion Conversion Emoticon Emoticon