Hi @durai raj s
If there is an identity column in this table, then you could use IDENT_CURRENT('tableName') which returns the last identity value generated for a specific table in any session and any scope.
Best regards,
Cosmog Hong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.