Partager via


TraceServer.InitializeAsReader Method

Initializes the server as a trace reader.

Espace de noms: Microsoft.SqlServer.Management.Trace
Assembly: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

Syntaxe

'Déclaration
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
)

Paramètres

  • 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 Générateur de profils SQL Server trace profile. For information about how to create a trace profile manually using Générateur de profils SQL Server, see Utilisation du Générateur de profils SQL Server.

Notes

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Exemple

Readme_Tracer

Sécurité des threads

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.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

TraceServer Class
TraceServer Members
Microsoft.SqlServer.Management.Trace Namespace

Autres ressources

Indicateurs de trace (Transact-SQL)
Utilisation du Générateur de profils SQL Server