I create a db and some tables through a script in sql server. i have lot of tables in db and quite a lot have identity columns with seed set to 1 and increment set to 1. the scripts executed fine and all the tables created.. Sql server � dbcc command to reseed table identity value � reset table identity march 15, 2007 pinal dave sql , sql performance , sql server , sql tips and tricks 85 comments dbcc checkident can reseed (reset) the identity value of the table.. Microsoft sql server's identity column generates sequential values for new records using a seed value. seeding and reseeding an identity column is easy and relatively safe, if you do it correctly..
Checks the current identity value for the specified table in sql server 2017 and, if it is needed, changes the identity value. is the name of the table for which to check the current identity value. the table specified must contain an identity column. when dbcc checkident is used to specify a new seed value by using reseed new_reseed. Sql server � query to find seed values, increment values and current identity column value of the table april 23, 2007 pinal dave sql , sql server , sql tips and tricks 19 comments following script will return all the tables which has identity column.. In my [previous post] i discussed about identity property with a [].. here in this post we will see how you can re-seed a particular identity column value.. there are times when you want to re-seed or reset the value of an identity column in a table.. when you delete a lot of records from a table and then try to insert more records..