

It is functioned similarly as using a cursor in T-sql which we always avoid using since it is on row-by-row basis and the performance is very poor. There are many articles online regarding the deadlocks with “OLE DBCommand”, and it is suggested not to use it if there are big amount of rows to be updated. In the OLEDB Connection, set the RetainSameConnect as “True” (a TRUE value for this property can also be useful in managing transactions and reducing the number of recurring connection requests to a server.).
SQL SERVER DEADLOCK ERROR CODE UPDATE

Take off the “Table Lock” in the insert into the “OLE DB Destination” A deadlock occurs when two processes are trying to update the same record or set of records, but the processing is done in a different order and therefore SQL. The first step in troubleshooting and resolving a deadlocking problem is to capture the deadlock graph information.I have tried below ways to resolve the deadlock, but it still happens, Source: “Microsoft SQL Server Native Client 11.0” Hresult: 0x80004005 Description: “Transaction (Process ID 64) was deadlocked on lock | communication buffer resources with another process and has been chosen as the deadlock victim. Deadlocks caused by Missing Indexes in SQL Server During our recent dataload, there’re sometimes deadlock occur when load into the a large table eg:Dim_Account, and mostly with the Update script in a “OLE DBCommand”, the error messages are: ] Error: SSIS Error Code DTS_E_OLEDBERROR.
