I suspect there must be some kind of key violation with delete and insert going at same time..?
Broken Link
2010-06-24 18:28:58
I suspect there must be some kind of key violation with delete and insert going at same time..?
One possible scenario: one connection insert a row in Element, and that row refers to a row in DLevel, and that row in DLevel is being deleted by another connection. Your nolock hint does not apply to foreign keys.
You might try removing the Foreign Key to DLevel.DFileID from the Element table. Since you have a Primary Key on DLevel.DlevelID and you reference that as a Foreign key in Element, the DFileID foreign key is not really needed.