Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
The TraceReplay object is a Replay object that represents the replay operation for trace log files and trace tables.
Jerarquía de herencia
System.Object
Microsoft.SqlServer.Management.Trace.TraceReplay
Espacio de nombres: Microsoft.SqlServer.Management.Trace
Ensamblado: Microsoft.SqlServer.ConnectionInfoExtended (en Microsoft.SqlServer.ConnectionInfoExtended.dll)
Sintaxis
'Declaración
<ComVisibleAttribute(False)> _
Public Class TraceReplay _
Implements IDisposable
'Uso
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
El tipo TraceReplay expone los siguientes miembros.
Constructores
| Nombre | Descripción | |
|---|---|---|
![]() |
TraceReplay | Initializes a new instance of the TraceReplay class. |
Arriba
Propiedades
| Nombre | Descripción | |
|---|---|---|
![]() |
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. |
Arriba
Métodos
| Nombre | Descripción | |
|---|---|---|
![]() |
Dispose | Deletes the trace information. |
![]() |
Equals | (Se hereda de Object.) |
![]() |
Finalize | Completes the trace replay. (Invalida Object.Finalize().) |
![]() |
GetHashCode | (Se hereda de Object.) |
![]() |
GetType | (Se hereda de Object.) |
![]() |
MemberwiseClone | (Se hereda de Object.) |
![]() |
Pause | Pauses the trace replay. |
![]() |
Start | Starts the trace replay. |
![]() |
Stop | Stops the trace replay. |
![]() |
ToString | (Se hereda de Object.) |
Arriba
Eventos
| Nombre | Descripción | |
|---|---|---|
![]() |
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. |
Arriba
Comentarios
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 Referencia de SQL Server Profiler or using a set of Transact-SQL stored procedures called Introducción a Seguimiento de SQL.
Thread Safety
Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.
Ejemplos
Seguridad para subprocesos
Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.Trace
.gif)
.gif)
.gif)
.gif)