I useam using MS SQL-SQL 2008 and for coding witham using C# in a web project. Currently
Currently, I got stuck with sql deadlock. I
I have 2 transactiontransactions, one of two is a long transaction. When
When both transactiontransactions run simultaneously, deadlock occurs and short transaction will be chose to be killed automatically. My
My Current solution, I catcham catching the exception of deadlock and redo the short transaction, it run well, just take some time. But
But, I wonder that if there is any solution to avoid deadlock from the root cause?