how to get the identity value of a table in sql server code example Example: how to get table current identity value in sql server SELECT IDENT_CURRENT('Pets') AS Result;