TraceReplay 클래스

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

상속 계층

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

네임스페이스:  Microsoft.SqlServer.Management.Trace
어셈블리:  Microsoft.SqlServer.ConnectionInfoExtended(Microsoft.SqlServer.ConnectionInfoExtended.dll)

구문

‘선언
<ComVisibleAttribute(False)> _
Public Class TraceReplay _
    Implements IDisposable
‘사용 방법
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

TraceReplay 유형에서 다음 멤버를 표시합니다.

생성자

  이름 설명
공용 메서드 TraceReplay Initializes a new instance of the TraceReplay class.

맨 위로 이동

속성

  이름 설명
공용 속성 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.

맨 위로 이동

메서드

  이름 설명
공용 메서드 Dispose Deletes the trace information.
공용 메서드 Equals (Object에서 상속됨)
보호된 메서드 Finalize Completes the trace replay. (Object.Finalize()을(를) 재정의함)
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetType (Object에서 상속됨)
보호된 메서드 MemberwiseClone (Object에서 상속됨)
공용 메서드 Pause Pauses the trace replay.
공용 메서드 Start Starts the trace replay.
공용 메서드 Stop Stops the trace replay.
공용 메서드 ToString (Object에서 상속됨)

맨 위로 이동

이벤트

  이름 설명
공용 이벤트 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.

맨 위로 이동

주의

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 프로파일러 참조 or using a set of Transact-SQL stored procedures called SQL Trace 소개.

Thread Safety

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

Readme_Tracer

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Management.Trace 네임스페이스

관련 자료

추적 플래그(Transact-SQL)

SQL Server Profiler 템플릿 및 권한