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

后端 未结 6 607
囚心锁ツ
囚心锁ツ 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:48

    In the event that you do hit the maximum number for you identity column, you can move the data from that table into a secondary table with a bigger identity column type and specify the starting value for that new identity value to be the maximum of the previous type. The new identity values will continue from that point.

提交回复
热议问题