I have many jobs running, some of which are causing blocking.
I can see the spid thats causing blocking but i cant link that to a particular job. Im getting the blocking spid, and the sql_handle, and using the handle im viewing the sql stext using dm_exec_sql_text. Unfortunately the jobs are quite big and call lots of sprocs etc.
rather than combing through each job to see if it calls the code i found from dm_exec_sql_text, is there an easier way to link a spid to a running job?