Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dropping a table with foreign key
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01315897
Message ID:
01315911
Views:
20
You should remove foreign keys first.

>Guys,
>I am doing some redesign of a database and an application and am am able to drop 8 tables (sweeeeeet).
>These 8 tables are linked through a foreign key to another table.
>
>Is it OK to just drop the 8 tables (DROP TABLE XYZ) and assume that the foreign key is removed with the table?
>Or should I remove the foreign key before dropping the tables?
>
>Thanks,
>Einar
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform