I get a violation of the primary key constraint error in one record when I try to insert it into an existing table.
The first time a problem occurred, it was included in the merge statement, but I can reproduce the problem trying to insert the record myself.
The primary key is in the varbinary (20) value generated by the hash byte function when the values ββof approximately 20 column values ββare concatenated. The varbinary (20) value I'm trying to insert is not in the target table, and it is only present once in the source table. When I filter the actual column values, the result will be the same; one record in the source and zero records in the target.
The goal table contains 101 178 878 rows. The primary key is not a clustered index in the table; there is a bigint identifier column that serves as a clustered index. There are no triggers on the target or source. The mappings are the same in everything (Danish_Norwegian_CI_AS). Instance - SQL Server 2008 R2 Standard Edition.
Now I'm completely stuck and I hope someone can help.
Thanks for reading: -)
This value is not satisfied: 0x0571F5F713CF220BB0DB057BBCE7E158CA6F89C0
In the target, the ones closest to one of them are as follows. There is no value equal to one.
0x0571F5F1238704E1A9D612F0A1648766B769E2AE 0x0571F5F713CF220BB0DB057BBCE7E158CA6F89C0 - a value that does not work 0x0571F608CBE12A007F3DC3736D2F03D90EC
EDIT: There are corruption issues in the database that cause unexpected behavior.
source share