Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FKEY and cacaded Deletes
Message
From
07/02/2002 17:14:02
 
 
To
07/02/2002 15:23:09
General information
Forum:
Microsoft SQL Server
Category:
Database design
Miscellaneous
Thread ID:
00616949
Message ID:
00617054
Views:
31
You're correct. You cannot have both. All constraints are checked before the actual data modification occurs. Triggers fire after the data modification occurs. In your situation, the constraint detects that RI would be violated and prevents the operations from continuing.

For SQL Server 7.0 (and below) you have to use one or the other.

Of course, you could always upgrade to SQL Server 2000 which does support cascading deletes and updates.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform