TraceServer.InitializeAsReader(ConnectionInfoBase, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes the server as a trace reader.
public:
void InitializeAsReader(Microsoft::SqlServer::Management::Common::ConnectionInfoBase ^ serverConnInfo, System::String ^ profileFileName);
public void InitializeAsReader (Microsoft.SqlServer.Management.Common.ConnectionInfoBase serverConnInfo, string profileFileName);
member this.InitializeAsReader : Microsoft.SqlServer.Management.Common.ConnectionInfoBase * string -> unit
Public Sub InitializeAsReader (serverConnInfo As ConnectionInfoBase, profileFileName As String)
Parameters
- serverConnInfo
- 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
- 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 Templates and Permissions.