Partager via


Méthode 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.

Espace de noms :  Microsoft.SqlServer.Management.Trace
Assembly :  Microsoft.SqlServer.ConnectionInfoExtended (en Microsoft.SqlServer.ConnectionInfoExtended.dll)

Syntaxe

'Déclaration
Public Sub InitializeAsWriter ( _
    source As TraceReader, _
    serverConnInfo As ConnectionInfoBase, _
    destinationTableName As String _
)
'Utilisation
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
)

Paramètres

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

Exemples

Readme_Tracer