Upper limit for autoincrement primary key in SQL Server

前端 未结 5 1446
南方客
南方客 2020-12-24 07:10

What is the upper limit for an autoincrement primary key in SQL Server? What happens when an SQL Server autoincrement primary key reaches its upper limit?

5条回答
  •  北海茫月
    2020-12-24 07:34

    DBCC CHECKIDENT (SomeTable, RESEED, 1)

    This resets the identity to 1 on table 'SomeTable'

    Not sure if this is the best way to do this.

提交回复
热议问题