TraceFile.InitializeAsWriter 方法

Initializes the specified TraceFile object for reading trace data from a TraceReader object, analyzing the data, and writing data the referenced trace log file.

命名空间:  Microsoft.SqlServer.Management.Trace
程序集:  Microsoft.SqlServer.ConnectionInfoExtended(在 Microsoft.SqlServer.ConnectionInfoExtended.dll 中)

语法

声明
Public Sub InitializeAsWriter ( _
    source As TraceReader, _
    destinationFileName As String _
)
用法
Dim instance As TraceFile 
Dim source As TraceReader 
Dim destinationFileName As String

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

参数

  • destinationFileName
    类型:System.String
    A String value that specifies the destination trace log file in which to write the new trace data.

示例

Readme_Tracer

请参阅

参考

TraceFile 类

Microsoft.SqlServer.Management.Trace 命名空间

其他资源

跟踪标志 (Transact-SQL)

SQL Server Profiler 模板和权限