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
- source
Tipo: 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
Tipo: 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
Tipo: System. . :: . .String
A String value that specifies the name of the trace table to write the replay trace output data.
Consulte também