I have the following unique index.
CREATE UNIQUE NONCLUSTERED INDEX [IX_Unique_Company_Owners] ON [dbo].[Company_Owners]
(
[Company_Entity_ID_FK] ASC,
[Person_Entity_ID_FK] ASC
)
Does the column order make a difference? I know it does for non-unique indexes. But wasn't sure if SQL Server somehow tweaks unique indexes behind the scenes.
Note both columns are not null.