Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can cascade delete without constraint?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01546256
Message ID:
01546267
Vues:
44
>>>>Hi,
>>>>
>>>>Typically you can include the ON DELETE CASCADE in the FK Constraint. But I was wondering if it is possible to have a ON DELETE CASCADE without the constraint? TIA.
>>>
>>>No,
>>>Unless you do this in a trigger.
>>
>>And you effectively have made a constraint except the server won't warn you about it.
>
>No,
>Constraint can't warn you, trigger also can't warn you, you must warn the user in your front end BEFORE deleting.

Not on the client side. In SSMS the server will warn (and block) you if you violate a constraint.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform