select a.session_id as 'BlockedSessionID', b.blocking_session_id , b.wait_duration_ms / 1000 as 'WaitDuration(Sec)', b.wait_type , c.resource_type, db_name(c.resource_database_id) as 'ResourceDBName', c.request_mode, c.request_type, c.request_status, b.resource_description , db_name(e.dbid) as 'BlockedDBName', object_name(e.objectid) as 'BlockedObjectName', e.text as 'BlockedQuery' , substring(e..