I want to get the next number of IDENT_CURRENT
I've used
select IDENT_CURRENT ('Header') + 1
But this one gave me value = '2'
when the table is empty
And when I use
select IDENT_CURRENT ('Header')
It will give value = '1'
in two cases, First one when the table is empty and the second one is when the table has one record.
Is there any solution for this case or I have to use another method?
Header Table
The table:
create table Header (
VhrNum int primary key identity (1,1),
Date varchar(50),
TotVhr varchar (50),
TotQTY Varchar(50)
)