You administer a Microsoft SQL Server database.
Users report that a billing application is throwing errors during busy times of the day.
You identify that the following error is regularly written to the application's error log every day between 4:00 pm and 5:30 pm:
Error 1205: Transaction (Process ID) was deadlocked on resources with another process and has been chosen as the deadlock victim.
You need to determine the cause of deadlocks. You start a trace using SQL Server Profiler.
Which event should you select?
Correct Answer: D
Explanation/Reference:
Explanation:
When diagnosing these kinds of problems, it's worth considering that there are useful trace events such as Lock:Deadlock and Deadlock graph events.
The deadlock graph reveals the deadlocked sessions, what statements were being run, the database, objects and pages on which the sessions were deadlocked, and more.
References:
https://www.red-gate.com/products/dba/sql-monitor/resources/articles/monitor-sql-deadlock