I have here example can truncate table
EXEC sp_MSforeachtable @command1="TRUNCATE TABLE ? NOCHECK CONSTRAINT ALL";
but the error says.
Msg 156, Level 15, State 1, Line 1 Incorrect syntax near the keyword 'NOCHECK'.
how to create a script which can truncate all the data in the tables in just 1 command, and can force to truncate with FOREIGN KEY
Thanks