TraceReplay Class

 

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

Namespace:   Microsoft.SqlServer.Management.Trace
Assembly:  Microsoft.SqlServer.ConnectionInfoExtended (in Microsoft.SqlServer.ConnectionInfoExtended.dll)

System.Object
  Microsoft.SqlServer.Management.Trace.TraceReplay

[ComVisibleAttribute(false)]
public class TraceReplay : IDisposable

NameDescription
System_CAPS_pubmethodTraceReplay()

Initializes a new instance of the TraceReplay class.

NameDescription
System_CAPS_pubpropertyConnection

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

System_CAPS_pubpropertyOptions

Gets or sets the configuration options for replaying the trace.

System_CAPS_pubpropertyOutputFile

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

System_CAPS_pubpropertyOutputTable

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

System_CAPS_pubpropertySource

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

NameDescription
System_CAPS_pubmethodDispose()

Deletes the trace information.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

Completes the trace replay.(Overrides Object.Finalize().)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodPause()

Pauses the trace replay.

System_CAPS_pubmethodStart()

Starts the trace replay.

System_CAPS_pubmethodStop()

Stops the trace replay.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventReplayEvent

Invokes the handler before an event is replayed.

System_CAPS_pubeventReplayPause

Invokes the handler before a replayed trace is paused.

System_CAPS_pubeventReplayResultEvent

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

System_CAPS_pubeventReplayStart

Invokes the handler before a replayed trace is started.

System_CAPS_pubeventReplayStop

Invokes the handler before a replayed trace is stopped.

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.

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.

Readme_Tracer

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

Return to top
Show: