Administering a SQL Database Infrastructure — Question 142
You are troubleshooting an application that runs a query. The application frequently causes deadlocks. You need to identify which transaction causes the deadlock.
What should you do? More than one answer choice may achieve the goal. Select the BEST answer.
Answer options
- A. Query the sys.dm_exec_requests dynamic management view.
- B. Create a trace in SQL Server Profiler that contains the Deadlock graph event.
- C. Query the sys.dm_exec_sessions dynamic management view.
- D. Create an extended events session to capture deadlock information.
Correct answer: D
Explanation
The best approach to capture detailed information about deadlocks is to create an extended events session, as it provides comprehensive insights into the deadlock scenario. While options A, B, and C can offer some information, they do not specifically focus on capturing the intricate details of deadlocks like option D does.