Change the starting value for the next record in an identity column

  • Hi,

    For testing purposes, I need to make the next record in a table to get a value above 33000 for an identity column.  The current number of records in the table is only ~13000.  Apart from changing the increment value, are there any other methods to do this?

    Thanks.

  • DBCC CHECKIDENT

    _____________
    Code for TallyGenerator

  • Or you can set IDENTITY_INSERT ON and manually insert a row with ID = 32999.

    Don't forget to set IDENTITY_INSERT back OFF and delete that row afterwards.

    _____________
    Code for TallyGenerator

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply