Hi @Perumal, Gowthami,
Given SQL Server 2019 Enterprise and SIMPLE recovery, this behavior is by design.
The only realistic cause of a jump from 168,712 to 9,999,993 is a failed or rolled-back large insert attempt from the application (bulk insert, batch insert, retry logic, background job, or parallel load). IDENTITY values are allocated up front and are never rolled back, even when the insert fails.
This can happen without any manual intervention and without data actually being inserted.
What it is not.
- Recovery model
- Corruption
- Identity cache alone
- SQL Server bug
One final note is that,
IDENTITY guarantees uniqueness, not continuity. Large gaps are expected under bulk/batch workloads.
If the number must be sequential, use a SEQUENCE with controlled allocation or a separate business key.
Thanks,
Akhil.