set identity_insert table_name on Query statement set identity_insert table_name off
-- Resets the current Identity value to maximum value DBCC CHECKIDENT ('TestTable', RESEED, 11);
-- Returns current Identity Value DBCC CHECKIDENT ('TestTable', NORESEED);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)