hii create a sample table by this code and insert some values to it :create table test(c1 int,c2 int)insert test select 1,2insert test select 2,44insert test select 3,56
now, i want to add new column with unique constraint by this code :alter table testadd c3 int unique
but the following error has shown me :Msg 1505, Level 16, State 1, Line 1CREATE UNIQUE INDEX terminated because a duplicate key was found for object name 'dbo.test' and index name 'UQ__test__2D27B809'. The duplicate key value is (<NULL>).Msg 1750, Level 16, State 0, Line 1Could not create constraint. See previous errors.The statement has been terminated.
where does my problem and how to solve it ?thaniks