Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RI Question...
Message
From
19/03/2003 23:32:28
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
27/02/2003 12:57:50
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Miscellaneous
Thread ID:
00758896
Message ID:
00767946
Views:
13
Bob,

You will have to create a delete trigger in the child table that updates the parent with the null.

>Does the declarative RI allow for nulling the FK if the parent is deleted. For example, I want to keep invoices even after the client is deleted. So, if a client is delete I want to null client_id in the invoice file so that it won't break RI. I know I won't be able to leave the value there cause it wouldn't meet the FK constraint.
>
>Thanks,
>BOb
Previous
Reply
Map
View

Click here to load this message in the networking platform