DBCC CHECKIDENT RESEED behaves differently when TRUNCATE or DELETE was used on the table
28. 12. 2021
Let’s assume we have some script where tables are filled with data and then DELETED/TRUNCATED again to rerun the script. Some of these tables are large and they don’t have a foreign key reference so we will decide to use TRUNCATE to remove the data. For tables referenced by foreign…