TraceFile Class

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

Пространство имен: Microsoft.SqlServer.Management.Trace
Сборка: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

Синтаксис

'Декларация
<ComVisibleAttribute(False)> _
Public Class TraceFile
    Inherits TraceReaderWriter
[ComVisibleAttribute(false)] 
public class TraceFile : TraceReaderWriter
[ComVisibleAttribute(false)] 
public ref class TraceFile : public TraceReaderWriter
/** @attribute ComVisibleAttribute(false) */ 
public class TraceFile extends TraceReaderWriter
ComVisibleAttribute(false) 
public class TraceFile extends TraceReaderWriter

Замечания

With the TraceFile object you can:

  • Read from a trace log file.

  • Write to a trace log file.

In addition to the Trace and Replay objects, the trace log file can be accessed manually with Справочник по приложению SQL Server Profiler or using a set of Transact-SQL stored procedures called Знакомство с трассировкой SQL.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Inheritance Hierarchy

System.Object
   Microsoft.SqlServer.Management.Trace.TraceReader
     Microsoft.SqlServer.Management.Trace.TraceReaderWriter
      Microsoft.SqlServer.Management.Trace.TraceFile

Пример

Readme_Tracer

Синхронизация потоков

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

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

TraceFile Members
Microsoft.SqlServer.Management.Trace Namespace

Другие ресурсы

Флаги трассировки (Transact-SQL)
Работа с приложением SQL Server Profiler