Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

Check Contraint VS Unique Index

$
0
0
Hello all i have a general question.We have a unique index on a table that is setup as a unique constraint. This gets thousands of writes and no reads. I was wondering what the difference would be if i removed this index and created a check constraint. Would the constraint act in the same way as the UNIQUE index where it would not allow duplicate values to be inserted into the table based on the column combination?

Viewing all articles
Browse latest Browse all 6525

Trending Articles