SQL Server – Reset auto number (IDENTITY) column in SQL Server

How to reset auto number (IDENTITY) column in SQL Server?

Sometimes we need to reset the auto number – identity column in a table.

Using the DELETE statement is not enough. The statement only deletes the data but not reset the identity column.

We can reset the auto number (IDENTITY) column in SQL Server using DBCC CHECKIDENT command.

Following example shows how to reset auto number (IDENTITY) column the IDENTITY column

01 Reset auto number (IDENTITY) column

Reset auto number (IDENTITY) column

02 Reset auto number (IDENTITY) column

Reset auto number (IDENTITY) column

03 Reset auto number (IDENTITY) column

Reset auto number (IDENTITY) column

04 Reset auto number (IDENTITY) column

Reset auto number (IDENTITY) column

05 Reset auto number (IDENTITY) column

Reset auto number (IDENTITY) column

06 Reset auto number (IDENTITY) column

Reset auto number (IDENTITY) column

07 Reset auto number (IDENTITY) column

Reset auto number (IDENTITY) column

08 Reset auto number (IDENTITY) column

Reset auto number (IDENTITY) column

Hope this post helps you.

4 comments