Bleeb
45 pts. | May 13 2009 2:10PM GMT
It’s SQL 2000 and the code runs in a stored procedure. It actually runs from a DTS job so I can see the errors that occur and they are due to deadlocking. The insert statements are what are taking so long - I’ve looked at the indexes on the tables to make sure there weren’t excessive indexes and there weren’t. I’m just curious how it could be locking against itself? Would it be because the transactions aren’t committed until the very end of the loop?






