Hi @ZM85
You could start from SELECT * FROM master.sys.sysprocesses
. sys.sysprocesses contains information about processes that are running on an instance of SQL Server. These processes can be client processes or system processes.
Find out if there is a connection that the blocked field is not 0? If it is not 0, and it is not -2, -3, -4, then it is blocked by the connection where the SPID is equal to the value of this field. In general, the blocked field of the blocking source will be Null. If it is not equal to 0, it means that it is also blocked by others, and you must continue to find the connection that blocked it.
Take a look at waittime
to know when this blocking occurred. If you run multiple queries and the spid waittime is blocked each time is short, it means that the single block does not last very long, and the blocking may not be very severe (of course, this will also affect the response speed).
Check dbid
and find which database the blocking is on.
For more details, please refer to this doc: What is sysprocesses and what can it do for you?
Best regards,
Cosmog Hong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.