Méthode TraceServer.InitializeAsReader
Initializes the server as a trace reader.
Espace de noms : Microsoft.SqlServer.Management.Trace
Assembly : Microsoft.SqlServer.ConnectionInfoExtended (en Microsoft.SqlServer.ConnectionInfoExtended.dll)
Syntaxe
'Déclaration
Public Sub InitializeAsReader ( _
serverConnInfo As ConnectionInfoBase, _
profileFileName As String _
)
'Utilisation
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
)
Paramètres
- serverConnInfo
Type : Microsoft.SqlServer.Management.Common.ConnectionInfoBase
A SqlConnectionInfo object value that specifies the connection information required to establish a connection with the instance of SQL Server that is to be traced.
- profileFileName
Type : 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.
Exemples
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Trace
Autres ressources
Indicateurs de trace (Transact-SQL)
Modèles et autorisations du générateur de SQL Server Profiler