In oracle, I can issue a DROP TABLE … cascade constraints and it won’t complain about FKs, etc.
Is there an equivalent in T-SQL?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
NO, IN SSMS right click on the table, and select “script table as” then “drop to”, then “new window”, “file…” or “clipboard” and it will produce a script that will include all the necessary drops of FKs etc.