Partilhar via


Método TraceServer.InitializeAsReader

Initializes the server as a trace reader.

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

Sintaxe

'Declaração
Public Sub InitializeAsReader ( _
    serverConnInfo As ConnectionInfoBase, _
    profileFileName As String _
)
'Uso
Dim instance As TraceServer 
Dim serverConnInfo As ConnectionInfoBase 
Dim profileFileName As String

instance.InitializeAsReader(serverConnInfo, _
    profileFileName)
public void InitializeAsReader(
    ConnectionInfoBase serverConnInfo,
    string profileFileName
)
public:
void InitializeAsReader(
    ConnectionInfoBase^ serverConnInfo, 
    String^ profileFileName
)
member InitializeAsReader : 
        serverConnInfo:ConnectionInfoBase * 
        profileFileName:string -> unit
public function InitializeAsReader(
    serverConnInfo : ConnectionInfoBase, 
    profileFileName : String
)

Parâmetros

  • profileFileName
    Tipo: System.String
    A String value that specifies the path and the name of the file that contains the SQL Server Profiler trace profile. For information about how to create a trace profile manually using SQL Server Profiler, see SQL Server Profiler Procedures.

Exemplos

Readme_Tracer

Consulte também

Referência

TraceServer Classe

Namespace Microsoft.SqlServer.Management.Trace

Outros recursos

Sinalizadores de rastreamento (Transact-SQL)

Modelos e permissões do SQL Server Profiler