This article has not been rated yet. After reading, feel free to leave comments and rate it.
Question:
How can I reset or reseed the IDENTITY column?
Answer:
See DBCC CHECKIDENT in SQL Server Books Online.
A quick and dirty way to reset the IDENTITY column would be to run TRUNCATE TABLE command on that table. TRUNCATE TABLE will delete all the rows from the table and reset the IDENTITY column. However, you will not be able to run TRUNCATE TABLE on a table referenced by foreign keys.
Send a message to
Subject
Comments:
2009-01-19, 22:55:19
anonymous from India
dbcc checkident('Table_name',RESEED,0)
here 0 means where u want generate id. if u put 0 means id will generate from 1