Enforce a unique constraint on a table with duplicate values
I have a table with duplicate values in a column. I want to make the column unique, but sql wont do it until i remove the duplicate values
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Oct 23, 2009, 7:18 AM EDT
Friend,
Here Microsoft's Article About Removing Duplicate to Apply Constaints
http://support.microsoft.com/kb/139444
and check " Do you like this answer" if it helps you :)
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 23, 2009, 7:06 AM EDT
You have to remove Duplicate Values or Make Them NULL . because its totally against the Rules Of RDBMS :)
if my answer helped you check "do you like this answer"
patrickRank #4,458 · 342 reputationPosted Oct 23, 2009, 7:11 AM EDT