Home » Microsoft » 70-459 » What should you do?
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.
A. Query the sys.dm_exec_sessions dynamic management view.
B. Create an extended events session to capture deadlock information.
C. Query the sys.dm_exec_requests dynamic management view.
D. Create a trace in SQL Server Profiler that contains the Deadlock graph event.
Correct Answer: B
Explanation/Reference:
According to these references, the answer looks correct.
References:
http://www.sqlservercentral.com/blogs/james-sql-footprint/2012/08/12/monitor-deadlock-in-sql-2012/
http://blogs.technet.com/b/mspfe/archive/2012/06/28/how_2d00_to_2d00_monitor_2d00_deadlocks_2d00_in_2d00_sql_2d00_server.aspx
http://msdn.microsoft.com/en-us/library/ms177648.aspx
http://msdn.microsoft.com/en-us/library/ms176013.aspx
http://msdn.microsoft.com/en-us/library/ms188246.aspx