how to reset the primary key in sql command line code example Example: primary key reset in SQL database DBCC CHECKIDENT('TableName',Reseed,0)