I need to get the next identity value from SQL Server.
SQL Server
I use this code :
SELECT IDENT_CURRENT(\'table_name\') + 1
This
SELECT isnull(IDENT_CURRENT('emp') + IDENT_INCR('emp'),1)