Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RI Question...
Message
De
19/03/2003 23:32:28
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
27/02/2003 12:57:50
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Divers
Thread ID:
00758896
Message ID:
00767946
Vues:
11
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform