TraceServer.InitializeAsReader Method
Initializes the server as a trace reader.
Espacio de nombres: Microsoft.SqlServer.Management.Trace
Ensamblado: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)
Sintaxis
'Declaración
Public Sub InitializeAsReader ( _
serverConnInfo As ConnectionInfoBase, _
profileFileName As String _
)
public void InitializeAsReader (
ConnectionInfoBase serverConnInfo,
string profileFileName
)
public:
void InitializeAsReader (
ConnectionInfoBase^ serverConnInfo,
String^ profileFileName
)
public void InitializeAsReader (
ConnectionInfoBase serverConnInfo,
String profileFileName
)
public function InitializeAsReader (
serverConnInfo : ConnectionInfoBase,
profileFileName : String
)
Parámetros
- serverConnInfo
A SqlConnectionInfo object value that specifies the connection information required to establish a connection with the instance of Microsoft SQL Server that is to be traced.
- profileFileName
A String value that specifies the path and the name of the file that contains the Analizador de SQL Server trace profile. For information about how to create a trace profile manually using Analizador de SQL Server, see Usar el Analizador de SQL Server.
Notas
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Ejemplo
Seguridad para subprocesos
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Plataformas
Plataformas de desarrollo
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Plataformas de destino
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Vea también
Referencia
TraceServer Class
TraceServer Members
Microsoft.SqlServer.Management.Trace Namespace
Otros recursos
Marcas de traza (Transact-SQL)
Usar el Analizador de SQL Server