Freigeben über


TraceReplay-Klasse

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

Vererbungshierarchie

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

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

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public Class TraceReplay _
    Implements IDisposable
'Usage
Dim instance As TraceReplay
[ComVisibleAttribute(false)]
public class TraceReplay : IDisposable
[ComVisibleAttribute(false)]
public ref class TraceReplay : IDisposable
[<ComVisibleAttribute(false)>]
type TraceReplay =  
    class 
        interface IDisposable 
    end
public class TraceReplay implements IDisposable

Der TraceReplay-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode TraceReplay Initializes a new instance of the TraceReplay class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Connection Gets or sets the connection with an instance of SQL Server.
Öffentliche Eigenschaft Options Gets or sets the configuration options for replaying the trace.
Öffentliche Eigenschaft OutputFile Gets or sets the name of an optional file to which trace replay output is streamed.
Öffentliche Eigenschaft OutputTable Gets or sets the name of an optional table to which trace replay output is streamed.
Öffentliche Eigenschaft Source Gets or sets the TraceReader object that contains the trace to be replayed.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Dispose Deletes the trace information.
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize Completes the trace replay. (Überschreibt Object.Finalize().)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode Pause Pauses the trace replay.
Öffentliche Methode Start Starts the trace replay.
Öffentliche Methode Stop Stops the trace replay.
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Ereignisse

  Name Beschreibung
Öffentliches Ereignis ReplayEvent Invokes the handler before an event is replayed.
Öffentliches Ereignis ReplayPause Invokes the handler before a replayed trace is paused.
Öffentliches Ereignis ReplayResultEvent Invokes the handler before a result is returned from a replayed event.
Öffentliches Ereignis ReplayStart Invokes the handler before a replayed trace is started.
Öffentliches Ereignis ReplayStop Invokes the handler before a replayed trace is stopped.

Zum Anfang

Hinweise

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 SQL Server Profiler (Referenz) or using a set of Transact-SQL stored procedures called Einführung in die SQL-Ablaufverfolgung.

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Beispiele

Readme_Tracer

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Trace-Namespace

Andere Ressourcen

Ablaufverfolgungsflags (Transact-SQL)

Vorlagen und Berechtigungen in SQL Server Profiler