Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can cascade delete without constraint?
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01546256
Message ID:
01546268
Views:
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.

Not if the constraint is ON DELETE CASCADE.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform