how to truncate table with foreign key constraint in sql server 2018 code example
Example: how to truncate table with foreign key constraint
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE table1;
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE table1;