Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Issue setting Foreign key constraint
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01518536
Message ID:
01518543
Vues:
41
>>>BTW, when you were creating this constraint, you created it for the specific key? So, start from that key first.
>>
>>I am confused. How can I create a constraint NOT for a specific key? What I did is
>>1. Created foreign key constraint on field MyField1
>>2. Created foreign key constraint on field MyField2
>>and so on.
>>but when I try to do it for some field MyFieldN I was hitting the problem.
>
>That's the point. The FieldN which references FieldM in another table is a problem. Start from investigating FieldM that FieldN was trying to reference.

Thank you. I am thinking of removing the references one by one. and then testing to create a foreign key for This field. Once This field foreign key is successful will hopefully point me to the "culprit."
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform