Share via


TraceReplay Class

Definition

The TraceReplay object is a Replay object that represents the replay operation for trace log files and trace tables.

public ref class TraceReplay : IDisposable
[System.Runtime.InteropServices.ComVisible(false)]
public class TraceReplay : IDisposable
[<System.Runtime.InteropServices.ComVisible(false)>]
type TraceReplay = class
    interface IDisposable
Public Class TraceReplay
Implements IDisposable
Inheritance
TraceReplay
Attributes
Implements

Examples

Readme_Tracer

Remarks

With the TraceReplay object you can:

  • Replay events a from a trace log file or trace table.

  • Modify trace data as it is replayed.

In addition to the Trace and Replay objects, the trace log file can be accessed manually with Using SQL Server Profiler or using a set of Transact-SQL stored procedures called SQL Trace.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Constructors

TraceReplay()

Initializes a new instance of the TraceReplay class.

Properties

Connection

Gets or sets the connection with an instance of SQL Server.

Options

Gets or sets the configuration options for replaying the trace.

OutputFile

Gets or sets the name of an optional file to which trace replay output is streamed.

OutputTable

Gets or sets the name of an optional table to which trace replay output is streamed.

Source

Gets or sets the TraceReader object that contains the trace to be replayed.

Methods

Dispose()

Deletes the trace information.

Finalize()

Completes the trace replay.

Pause()

Pauses the trace replay.

Start()

Starts the trace replay.

Stop()

Stops the trace replay.

Events

ReplayEvent

Invokes the handler before an event is replayed.

ReplayPause

Invokes the handler before a replayed trace is paused.

ReplayResultEvent

Invokes the handler before a result is returned from a replayed event.

ReplayStart

Invokes the handler before a replayed trace is started.

ReplayStop

Invokes the handler before a replayed trace is stopped.

Applies to