When I execute the selection request, I get the error message “Exception request blocking time”.
I know when this error will come. Some transactions must lock the table.
But I need to know how to find this.
Please note that I cannot check it live when it is blocked. This is similar to what it was in the past, but I need to know what the other transaction / request was that blocked this time.
Simply put, I want these events to be logged in the sql error logs when this happens, so that I can see them later and find who was the long query blocking it.
Any idea how to do this. I tried setting trace flags and checking. DBCC TRACEON (1204, 122, -1) But I could not find anything related to this. Thanks in advance.
source
share