I’ve got 2 tables:
attCatAppSet, attCatAppSet_translation
On both tables I’ve applied a unique constraint on 2 columns (that are not Primary Keys), so that column-pair values can't be duplicated.
GO
ALTER TABLE attCatAppSet
ADD CONSTRAINT UQ_category_id_setOrder
UNIQUE(category_id, setOrder)
GO
GO
ALTER TABLE attCatAppSet_translation
ADD CONSTRAINT UQ_siteLanguage_id_attCatAppSet_id
UNIQUE(siteLanguage_id, attCatAppSet_id)
GO
Result: looking at the object explorer I get 2 different implementations of my commands. On table attCatAppSet, there is a unique index constraint. On table attCatAppSet_translation, there is a unique index and unique key constraint.

Same thing shows if I call:
GO
sp_helpIndex attCatAppSet
GO
sp_helpIndex attCatAppSet_translation

- How come I've got 2 different implementations of the query?
- What is the difference between the 2 results?