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).

a_horse_with_no_name
  • 497,550
  • 91
  • 775
  • 843
Fatih TAN
  • 768
  • 1
  • 5
  • 21

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,737
  • 1
  • 8
  • 27