Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
YAQ on Foreign Key constraint
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Divers
Thread ID:
01457802
Message ID:
01457808
Vues:
62
This message has been marked as the solution to the initial question of the thread.
You can have NULLs in a FK column but not empty values.

>
>I am still getting a "conflict" message when trying to create a foreign key constraint. I checked that the table with the foreign key has only those entries in the key column that are present in the unique column of the parent table. The only thing is that the foreign key table has some records with empty value in the foreign key field. Could this be the problem? (I thought that empty column records are not counted in the constraint but maybe I am mistaken).
>
>TIA.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform