79591855

Date: 2025-04-25 05:29:41
Score: 1.5
Natty:
Report link

Here is a modified version of the answer by @pedromendessk that should work in one go:

EXEC sp_MSforeachtable
    @command1 = 'ALTER TABLE ? NOCHECK CONSTRAINT ALL',
    @command2 = 'DROP TABLE ?'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @that
  • Low reputation (0.5):
Posted by: Mr. X