Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Unique index on 2 columns nullables

$
0
0
Hi All,

I find to be able to have multiple NULL entries in the following constraint:
Code:

CREATE UNIQUE INDEX my_uidx ON my_table(my_col1,my_col2) WHERE ??? IS NOT NULL;
But is not possible to check multiple colums in "WHERE".

I using SQL Server 2012 Express

Do you know another solution ?

Thanks.

Nassa.

Viewing all articles
Browse latest Browse all 13329

Trending Articles