Problem : we have a table in sql server and we have set a primary key to a column and auto increment is enabled, once u go on adding the records into the table the Identity column value is incremented by one, in case if u want to delete all the records in the table and re-insert the values the Identity column value will start from the previous value but not from zero.
Solution:
To reset the Identity column value we have a command in sql
USE
Databasename
GO
DBCC CHECKIDENT ('schema.tablename' , RESEED, 0)
GO
On execution of this command successfully the below message is generated
Checking identity information: current identity value '0', current column value '0'.
DBCC execution completed.