다음을 통해 공유


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

The Microsoft.SqlServer.Management.Trace namespace contains the SQL Server Trace and Replay objects.

The Microsoft.SqlServer.Management.Trace provides an interface for reading trace data from files, tables, or rowsets.

The Trace and Replay objects can do the following:

  • Trace and record events on an instance of SQL Server.

  • Manipulate and analyze trace data.

  • Replay recorded trace events on an instance of SQL Server.

The Microsoft.SqlServer.Management.Trace namespace is in the Microsoft.SqlServerConnectionInfoExtended.dll file.

In addition to the Trace and Replay objects, SQL Server traces can be implemented manually by using SQL Server 프로파일러 참조, or by using the SQL Trace 소개 set of Transact-SQL stored procedures.

[!참고]

The Trace and Replay objects are not supported on a 64-bit platform.

클래스

  클래스 설명
공용 클래스 ReplayEventArgs The ReplayEventArgs object provides programmatic access to the arguments used to report events that occur when replaying trace on an instance of SQL Server.
공용 클래스 SqlTraceException The SQLTraceException class represents the general exception raised by the SMO trace objects.
공용 클래스 SqlTraceFailToInstantiateTypeException The SQLTraceFailToInstantiateTypeException class represents the exception raised when an SMO trace object operation fails to instantiate an object.
공용 클래스 SqlTraceFailToLoadInstAPIAssemblyException The SQLTraceFailToLoadInstAPIAssemblyException class represents the exception raised by the SMO trace objects when an Inst API assembly fails to load.
공용 클래스 TraceEventArgs The TraceEventArgs object provides programmatic access to the arguments used to report events that occur when collecting trace from an instance of SQL Server.
공용 클래스 TraceFile The TraceFile class is a Trace object that represents a trace log file.
공용 클래스 TraceReader The TraceReader class is an abstract Trace Object class that is used in the construction of the TraceServer class, the TraceTable class, and the TraceFile class.
공용 클래스 TraceReaderWriter The TraceReaderWriter class is an abstract Trace Objects class that is used in the construction of the TraceTable class and the TraceFile class.
공용 클래스 TraceReplay The TraceReplay object is a Replay object that represents the replay operation for trace log files and trace tables.
공용 클래스 TraceReplayOptions The TraceReplayOptions object is a Replay object that represents the configuration settings required when replaying a trace.
공용 클래스 TraceServer The TraceServer class is a Trace object that represents a new trace on an instance of SQL Server.
공용 클래스 TraceTable The TraceTable class is a Trace object that represents a table of trace information.

인터페이스

  인터페이스 설명
공용 인터페이스 IDataRecordChanger The IDataRecordChanger object is a Trace and Replay object that represents the current record.
공용 인터페이스 ITraceDataWriter The ITraceDataWriter object provides programmatic access to the data writer for the SQL Trace.

대리자

  대리자 설명
공용 대리자 ReplayEventHandler Represents the ReplayEventHandler event handler.
공용 대리자 ReplayPauseHandler Represents the ReplayPauseHandler event handler.
공용 대리자 ReplayResultEventHandler Represents the ReplayResultEventHandler event handler.
공용 대리자 ReplayStartHandler Represents the ReplayStartHandler event handler.
공용 대리자 ReplayStopHandler Represents the ReplayStopHandler event handler.
공용 대리자 WriteNotifyEventHandler Represents the WriteNotifyEventHandler handler.

열거형

  열거형 설명
공용 열거형 ReplayMode The ReplayMode enumeration contains values that are used to specify the type of synchronization used during the trace replay.

참고 항목

참조

관련 자료