Hello,
I am experiencing dead-locks when performing a bulk insert on two different tables with the SqlBulkCopy classes of .net.
Actually, the tool using the SqlBulkCopy class converts data from a Sybase database to an empty Sql server database.
To have maximum performance, all indexes are disabled in my sql server database (except for the clustered indexes), as well as the foreign keys and the check constraints.
I have used this tool successfully on environments using sql server 2008 r2, but this time I am using it on a sql server 2008 environment (build 10.0.2531).
I have multiple deadlock graphs that I could show you (see my post below).
In this graph, I see that the object FK_TRA_REG_UNKNOWN_A_TRA_BCI_ is locked. This is a foreign key between tables TRA_REG and TRA_BCI_ID_INFO which are both present in the deadlock graph. This foreign key is disabled, so how could it be locked?
Kind greetings
↧