Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dropping a table with foreign key
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01315897
Message ID:
01315913
Vues:
15
Thanks Sergey. The foreign key is a "member" of the table so dropping the table implicitly drops the foreign key, correct?

Einar

>Yes, you can just drop tables.
>
>>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?
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform