-T1222 is on our server and I'm getting dead lock graph in error log whenever a dead lock occurs. But how to deal with Blocking?
select * from sys.dm_exec_requests
where blocking_session_id <> 0
and wait_time/1000 >= 120
Above query shows information about sessions blocked for more than 2 minutes.
Customize it according to your requrement.
Schedule a SQL Server Agent job to run once in a few minutes to email you the list of blocked processes.
If you receive email alert, deal with it.
Hope it helps you.