كلا سه تا روش داريم:
IDENT_CURRENT returns the last identity value generated for a specific table in any session and any scope.http://msdn.microsoft.com/en-us/library/ms175098.aspx
@@IDENTITY returns the last identity value generated for any table in the current session, across all scopes.
SCOPE_IDENTITY returns the last identity value generated for any table in the current session and the current scope.