When I click on "DROP To" Option from "Script Table As" context menu in Object Explorer, it opens up a new query editor window with only "DROP TABLE" statement.
But, when I click on "DROP And CREATE To" Option from the same context menu in Object Explorer, it opens up a new query editor window with "ALTER TABLE... DROP CONSTRAINT" statements and "DROP TABLE" statement.
Doesn't dropping a table also delete all the constraints associated with it? In either case, why are there two different behaviors for same purpose?
DROP
andCREATE
statement; that's the difference. They do what they say on the tin. – Larnu Apr 18 '19 at 14:28