I am trying to insert records into the database as follows insert into lookuptable select * from lookuptable1
which produces Msg 2627, Level 14, State 1, Line 1 Violation of UNIQUE KEY constraint 'uqLookuptable1cols1'. Cannot insert duplicate key in object 'dbo.lookuptable'. The statement has been terminated.
Is there a way to handle this error so I can carry on inserting the rest of the records into the table