Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

Microsoft.SqlServer.Management.Trace Namespace

 

Applies To: SQL Server 2016 Preview

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

ClassDescription
System_CAPS_pubclassReplayEventArgs

The ReplayEventArgs object provides programmatic access to the arguments used to report events that occur when replaying trace on an instance of SQL Server.

System_CAPS_pubclassSqlTraceException

The T:Microsoft.SqlServer.Management.Trace.SQLTraceException class represents the general exception raised by the SMO trace objects.

System_CAPS_pubclassSqlTraceFailToInstantiateTypeException

The T:Microsoft.SqlServer.Management.Trace.SQLTraceFailToInstantiateTypeException class represents the exception raised when an SMO trace object operation fails to instantiate an object.

System_CAPS_pubclassSqlTraceFailToLoadInstAPIAssemblyException

The T:Microsoft.SqlServer.Management.Trace.SQLTraceFailToLoadInstAPIAssemblyException class represents the exception raised by the SMO trace objects when an Inst API assembly fails to load.

System_CAPS_pubclassTraceEventArgs

The TraceEventArgs object provides programmatic access to the arguments used to report events that occur when collecting trace from an instance of SQL Server.

System_CAPS_pubclassTraceFile

The TraceFile class is a Trace object that represents a trace log file.

System_CAPS_pubclassTraceReader

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.

System_CAPS_pubclassTraceReaderWriter

The TraceReaderWriter class is an abstract Trace Objects class that is used in the construction of the TraceTable class and the TraceFile class.

System_CAPS_pubclassTraceReplay

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

System_CAPS_pubclassTraceReplayOptions

The TraceReplayOptions object is a Replay object that represents the configuration settings required when replaying a trace.

System_CAPS_pubclassTraceServer

The TraceServer class is a Trace object that represents a new trace on an instance of SQL Server.

System_CAPS_pubclassTraceTable

The TraceTable class is a Trace object that represents a table of trace information.

InterfaceDescription
System_CAPS_pubinterfaceIDataRecordChanger

The IDataRecordChanger object is a Trace and Replay object that represents the current record.

System_CAPS_pubinterfaceITraceDataWriter

The ITraceDataWriter object provides programmatic access to the data writer for the SQL Trace.

DelegateDescription
System_CAPS_pubdelegateReplayEventHandler

Represents the ReplayEventHandler event handler.

System_CAPS_pubdelegateReplayPauseHandler

Represents the ReplayPauseHandler event handler.

System_CAPS_pubdelegateReplayResultEventHandler

Represents the ReplayResultEventHandler event handler.

System_CAPS_pubdelegateReplayStartHandler

Represents the ReplayStartHandler event handler.

System_CAPS_pubdelegateReplayStopHandler

Represents the ReplayStopHandler event handler.

System_CAPS_pubdelegateWriteNotifyEventHandler

Represents the WriteNotifyEventHandler handler.

EnumerationDescription
System_CAPS_pubenumReplayMode

The ReplayMode enumeration contains values that are used to specify the type of synchronization used during the trace replay.

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.

System_CAPS_noteNote

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

Return to top

Community Additions

Show:
© 2015 Microsoft