Initializes the server as a trace reader.
네임스페이스: Microsoft.SqlServer.Management.Trace
어셈블리: Microsoft.SqlServer.ConnectionInfoExtended(Microsoft.SqlServer.ConnectionInfoExtended.dll)
구문
‘선언
Public Sub InitializeAsReader ( _
serverConnInfo As ConnectionInfoBase, _
profileFileName As String _
)
‘사용 방법
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
)
매개 변수
- serverConnInfo
유형: 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
유형: System.String
A String value that specifies the path and the name of the file that contains the SQL Server 프로파일러 trace profile. For information about how to create a trace profile manually using SQL Server 프로파일러, see SQL Server Profiler Procedures.
예
참고 항목
참조
Microsoft.SqlServer.Management.Trace 네임스페이스