Deadlocks in the DB.
A sample query is being provided below. It can be used to get a list of all sessions in the DB. By looking at the queries that are stuck, a decision can be made as to whether the job is stuck due to a deadlock.
SELECT r.session_id, s.login_name, s.host_name, s.program_name, DB_NAME(r.database_id) AS database_name, r.start_time, r.status, r.command, t.text AS query_text, r.wait_type, r.wait_time, r.cpu_time, r.total_elapsed_time, r.reads, r.writes, r.logical_readsFROM sys.dm_exec_requests rINNER JOIN sys.dm_exec_sessions s ON r.session_id = s.session_idCROSS APPLY sys.dm_exec_sql_text(r.sql_handle) tWHERE r.session_id <> @@SPID -- Excludes this exact query from the results AND s.is_user_process = 1; -- Excludes background system processes
Note: It is recommended not to kill sessions indiscriminately. Contact Broadcom Support for assistance if required.