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
- source
Type : Microsoft.SqlServer.Management.Trace. . :: . .TraceReader
A TraceReader object value that specifies the source of the trace data. This object can represent a trace table or a trace file.
- serverConnInfo
Type : Microsoft.SqlServer.Management.Common. . :: . .ConnectionInfoBase
A SqlConnectionInfo object value that specifies the information required to establish a connection with the instance of Microsoft SQL Server that contains the trace table.
- destinationTableName
Type : System. . :: . .String
A String value that specifies the name of the trace table to write the replay trace output data.
Voir aussi