Open atrdev-rgb opened 1 year ago
I need more context. What are you doing to get this exception? I'm assuming that you're trying to export the data to the existing table. If so, I would strictly recommend you to create a temporary database and export the data to this DB instead.
so that's the point. Skip the data that has already been added and add the missing ones
I'm not sure if there is any benefit. You can export the data to the temporary table without primary keys and other constraints, and after that all the power of SQL language will help you analyze and process it.
Violated "PK_CodesDictionaryTable" PRIMARY KEY constraint. Cannot insert duplicate key into object 'dbo.CodesDictionaryTable'. Duplicate key value: (1).
Is it possible to skip duplicate values and create a table if it doesn't exist, and if it does, skip and go to filling?