Hello and thanks for reading and probably also helping me
brief explanation of my problem:
I am copying Data from one Firebird-Database to another (called V14) and i am using IBExpert to do so. The tables are named equally and have the same structure. For the purpose of explaining i am going to call the table containing the data in the old database A and the table i want to insert the data into shall be called B.
So the only thing to do is to take all Data from table A and insert them into table B. The small piece of Code to do so is:
INSERT into [V14].BSMZ SELECT * FROM BSMZ
executing this i receive the error-Message (after some rows were transfered):
Invalid insert or update value(s): object columns are constrained - no 2 table rows can have duplicate column values. attempt to store duplicate value (visible to active transactions) in unique index "UI_BSMZ"
This unique-Index contains 2 Data-colums and applies to table B and A.
There are multiple rows that cause this problem but also multiple rows are transfered as desired. I have prooved that the rows, that can't be inserted into table B have values in their unique-key-colums, that are not alredy present in table B.
(For purpose of testing i did remove the constraint from table B. But i still get the same error-message, wich confuses me even more)
I am not really sure what could cause this problem and would appreciate some hints.