Identity increment is jumping in SQL Server database

前端 未结 6 1354
夕颜
夕颜 2020-11-21 06:47

In one of my tables Fee in column \"ReceiptNo\" in SQL Server 2012 database identity increment suddenly started jumping to 100s instead of 1 depending on the fo

6条回答
  •  不思量自难忘°
    2020-11-21 07:01

    There are many possible reasons for jumping identity values. They range from rolled back inserts to identity management for replication. What is causing this in your case I can't tell without spending some time in your system.

    You should know however, that in no case you can assume an identity column to be contiguos. There are just too many things that can cause gaps.

    You can find a little more information about this here: http://sqlity.net/en/792/the-gap-in-the-identity-value-sequence/

提交回复
热议问题