I have an outer distributed transaction which is locking (Hanging) an insert statement to a table.
I don’t have control over the outer transaction. How to avoid this blocking at the very granular level. I tried to put Transaction Suppress around that insert at .net level. It didn’t work.
Please look at the image for detailed information.
Any solution to this kind of issue could be very helpful
. I appreciate your support.
That is expected if there is a strong crossover between what the two operations are looking at, and aren’t in the same transaction. The outer transaction has presumably taken a key-range lock that is causing the block (at a guess the outer transaction is “serializable” isolation-level). There is nothing you can really do here, except:
if you can’t do any of those things, then you can’t insert without breaking integrity – so it won’t let you. You might want to consider deferring the insert until the outer operation has comlpleted.