Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FK Constraint, Unique field constraint, Unique index
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01639915
Message ID:
01639943
Vues:
54
In practical sense there is no difference between UNIQUE INDEX and UNIQUE CONSTRAINT. If you want more detailed explanation, google

>
>I am changing the FK constraint from referencing just one column to two columns (was: CATEGORY, now SITE_NO, CATEGORY).
>
>Before the change, I had to DROP UNIQUE FIELD CONSTRAIN on the parent table. Then I created a UNIQUE INDEX (not CONSTRAINT) and then created (on the parent table) the FK_CONSTRANT on the two columns (on the child table). All works.
>
>What I don't understand is in which case I would need the UNIQUE FIELD CONSTRAINT (on the parent table)? I had it before, dropped it, created unique index and all works. I am just trying to see if I will miss something by not having the UNIQUE FIELD CONSTRAINT.
>
>TIA
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform