I have a table with PK column defined like IDENTITY(1,1), it has 16 entries, now after series of migration and restores I'm adding new row into it like below and get new TypeID = 1001 ? Totaly lost is this somewhere go reset to 1000? Before was only 16 entries with correct sequence 1 by 1 thru 16.
What could be wrong , can anybody help.
CREATE TABLE [dbo.].[Types](
[TypeID] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
[Code] [nvarchar](350) NULL,
[Description] [nvarchar](350) NULL,
[IsActive] [bit] NOT NULL,
CONSTRAINT [pkTypes] PRIMARY KEY CLUSTERED
( [TypeID] ASC ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] )
( Code ,
VALUES ( N'Alpha' , -- Code - nvarchar(50)
N'Alpha Type 17' , -- Description - nvarchar(250)
1 -- IsActive - bit )
select * from dbo.Types