I need to fetch the blocking session details as we see on the UI with SPID, Blocking time, Program Name & machine name.
I have checked in in CONSW table and able to fetch Program name, machine name & SPID of blocking session as suggested in CONSW Column Definition. But for blocking time I am unable to build any logic. I tried calculating the first & last entry for the sessions in last hour and calculating the blocking time but it did not give desired result.
I need output as count for all session blocking which are greater than 5 minutes in the last 1 hour.
