COMPUTER SCIENCE AND ENGINEERING
SQL
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
You need to diagnose deadlocks that happen when executing a specific set of store procedures by recording events and playing them back on a different test server. What should you créate?
|
An Extended Event session
|
|
A Policy
|
|
A SQL Profiler Trace
|
|
A Resource Pool
|
Explanation:
Detailed explanation-1: -To trace deadlock events, add the Deadlock graph event class to a trace. This event class populates the TextData data column in the trace with XML data about the process and objects that are involved in the deadlock. SQL Server Profiler can extract the XML document to a deadlock XML (.
Detailed explanation-2: -SQL Server Profiler is an interface to create and manage traces and analyze and replay trace results. Events are saved in a trace file that can later be analyzed or used to replay a specific series of steps when diagnosing a problem. SQL Trace and SQL Server Profiler are deprecated.
There is 1 question to complete.