Search code examples
sqlsql-server-2012auto-increment

How can I update the ID column?


My question may seem easy to answer for some people but I can't find an answer.

So in SQL Server Management Studio I have a column of Ids (primary key) with an increment of 1.

By making a mistake I find myself in the situation where my id's run of 23 to 36! and not 23 to 24 ...

enter image description here

How to restore the default incrementing ?

Thanks in advance for you answers and best regards !


Solution

  • You can use the RESEED function to setup your identity column Check this MSDN article