We have Delphi code that uses BDE to access SQL Server 2008 using the SQL Server Native Client ODBC driver (2005 version). Our problem is that we encounter some deadlock issues in the loop that make inserts for multiple tables.
The entire loop is executed in [TDatabase] .StartTransaction. Looking at the SQL Server profiler, we clearly see that at one point during the cycle, the SPID (Session ID?) Changes, and then we naturally end up in a dead end. (Both SPIDs insert into the same table)
It seems that BDE at some point makes a second connection to the database ...
(Although I would like to skip BDE, this is currently not possible).
Does anyone have experience sharing?
source
share