Compartilhar via


Método InitializeAsWriter

Initializes the specified TraceTable object for reading trace data from a TraceReader object, analyzing the data, and writing data to the referenced trace table.

Namespace:  Microsoft.SqlServer.Management.Trace
Assembly:  Microsoft.SqlServer.ConnectionInfoExtended (em Microsoft.SqlServer.ConnectionInfoExtended.dll)

Sintaxe

'Declaração
Public Sub InitializeAsWriter ( _
    source As TraceReader, _
    serverConnInfo As ConnectionInfoBase, _
    destinationTableName As String _
)
'Uso
Dim instance As TraceTable
Dim source As TraceReader
Dim serverConnInfo As ConnectionInfoBase
Dim destinationTableName As String

instance.InitializeAsWriter(source, serverConnInfo, _
    destinationTableName)
public void InitializeAsWriter(
    TraceReader source,
    ConnectionInfoBase serverConnInfo,
    string destinationTableName
)
public:
void InitializeAsWriter(
    TraceReader^ source, 
    ConnectionInfoBase^ serverConnInfo, 
    String^ destinationTableName
)
member InitializeAsWriter : 
        source:TraceReader * 
        serverConnInfo:ConnectionInfoBase * 
        destinationTableName:string -> unit 
public function InitializeAsWriter(
    source : TraceReader, 
    serverConnInfo : ConnectionInfoBase, 
    destinationTableName : String
)

Parâmetros

  • destinationTableName
    Tipo: System. . :: . .String
    A String value that specifies the name of the trace table to write the replay trace output data.

Exemplos

Readme_Tracer