Just a warning word with:
DBCC CHECKIDENT (MyTable, RESEED, 0)
If you did not truncate the table, and the identification column is a PC, you will receive an error message when reaching previously existing identifiers.
For example, you already have identifiers (3,4,5) in the table. Then you specify the reset column with identifier 1. After entering identifier 2, the next insert will try to use identifier 3, which will not be executed.
Forgotten Semicolon Aug 19 '08 at 21:40 2008-08-19 21:40
source share