Connect to the MSSQL database and open the query editor for service desk database(any database should work)
1. Execute the query sp_who2
2. Above command will show the list of database query process which is currently in execution that causes the database table locks.And the query which block
the
subsequent operation process can be identified by viewing the BlkBy ( Blocked by ) column in the output of the above "sp_who2" command execution.
Find the BlkBy id's for the ServiceDesk Plus database.
From the above screenshot, the BlkBy id's for ServiceDesk database can be identified as 51 and 58.
3. And to identify the exact query which causes the locking, we need to execute dbcc inputbuffer(specify the query id identified in the BlkBy column).The query is displayed on the field called EventInfo,ff the query isn't visible in full,you may click on the query and copy that to a notepad.
For example results for dbcc inputbuffer(58) is displayed below.
These queries with the help of the Thread dump and the serverout logs should help us identify the root cause.