0

There is a table named User in database. Columns as follows:

ID
FirstName
LastName

ID is primary key and auto incremented in this case. I have only 7 records; last ID of data is 7.

How can I increment ID starting from any number (eg. 10000).

Fatih TAN
  • 778
  • 1
  • 5
  • 23

1 Answers1

2

You may use this. CHECKIDENT is use to reseed the value of your identity column. For more info you may find this link.LINK.

 DBCC CHECKIDENT ('Yourtable', RESEED, yournumber);    ---- here yournumber is the number to reseed.
DarkRob
  • 3,843
  • 1
  • 10
  • 27