sql clear table reset code example
Example 1: how to reset the identity column in sql server
USE <databasename>;
GO
DBCC CHECKIDENT ('<tablename>.<columnname>', <value>, <incrementby>);
GO
Example 2: reseed sql table primary key
DBCC CHECKIDENT ('YourTableName', RESEED, 0);