What happen in SQL 2005 when it run out of number for an autonumber column?

后端 未结 6 613
囚心锁ツ
囚心锁ツ 2021-02-08 12:07

What happen when SQL Server 2005 happen to reach the maximum for an IDENTITY column? Does it start from the beginning and start refilling the gap?

What is the behavior

6条回答
  •  遇见更好的自我
    2021-02-08 12:49

    If you delete "old values" from time to time you just need to reset the seed using DBCC CHECKIDENT ('MyTable', RESEED, 0);

提交回复
热议问题