Replay to a Cursor
06/06/2025 This article describes how to replay trace files or tables that pause when a cursor is reached by using SQL Server Profiler. Pausing t
This article describes how to replay trace files or tables that pause when a cursor is reached by
using SQL Server Profiler. Pausing traces at cursors supports debugging because you can break
the replay of long trace scripts into short segments that can be analyzed incrementally.
- Open the trace file or trace table you want to replay. For more information, see
Open a
trace file (SQL Server Profiler)
or
Open a trace table (SQL Server Profiler).
Make sure that the trace file or table you open contains the event classes necessary for
replay. For more information, see
Replay Requirements.
-
In the trace window, select an event.
-
On the
menu, select
, and then connect to the server where you
want to replay the trace.
- In the
dialog box, verify the settings, and then select.
The replay starts, pausing when the first cursor is reached.
-
Press F5 to resume the trace.
-
Repeat Step 5 through the end of the trace.
Replay to a breakpoint (SQL Server Profiler)
Replay Traces
Profiler