Condividi tramite


TraceServer Class

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

Spazio dei nomi: Microsoft.SqlServer.Management.Trace
Assembly : Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

Sintassi

'Dichiarazione
<ComVisibleAttribute(False)> _
Public Class TraceServer
    Inherits TraceReader
[ComVisibleAttribute(false)] 
public class TraceServer : TraceReader
[ComVisibleAttribute(false)] 
public ref class TraceServer : public TraceReader
/** @attribute ComVisibleAttribute(false) */ 
public class TraceServer extends TraceReader
ComVisibleAttribute(false) 
public class TraceServer extends TraceReader

Osservazioni

With the TraceServer object you can:

  • Start a new trace.

  • Read a trace.

In addition to the Trace and Replay objects, the trace can be created manually with Guida di riferimento a SQL Server Profiler or using a set of Transact-SQL stored procedures called Introduzione a Traccia 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.TraceServer

Esempio

Readme_Tracer

Thread Safety

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.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

TraceServer Members
Microsoft.SqlServer.Management.Trace Namespace

Altre risorse

Flag di traccia (Transact-SQL)
Utilizzo di SQL Server Profiler