Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FK Constraint, Unique field constraint, Unique index
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01639915
Message ID:
01639943
Views:
58
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform