Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declarative RI....
Message
De
09/05/2003 00:15:25
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Declarative RI....
Divers
Thread ID:
00786627
Message ID:
00786627
Vues:
64
Can anyone point to the reason you can't do a cascade delete when there are two FK's to the same field in a table?

For example...

city has a pk of city_pk


And employee has two fk,s

homecityfk and workcityfk ... both relate to city_pk. I can create the FK constraints, but when I tell it to cascade key updates to more than one FK I am told it 'might be cylic' which it doesn't seem like it will.

does anyone know a work around (other than a trigger) for this situation, or can point me to a BOL topic on why you can't do this?

Thanks,
BOb
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform