SQL 事件探查器
Microsoft.SQLServer.2012.DBEngine.RunSQLProfiler (ConsoleTask)
Element properties:
Source Code:
<ConsoleTask ID="Microsoft.SQLServer.2012.DBEngine.RunSQLProfiler" Accessibility="Internal" Target="SQL2012Core!Microsoft.SQLServer.2012.DBEngine" RequireOutput="false" Category="MonitoringObject">
<Application>profiler.exe</Application>
<Parameters>
<Parameter>/S</Parameter>
<Parameter>$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ConnectionString$</Parameter>
<Parameter>/E</Parameter>
</Parameters>
<WorkingDirectory/>
</ConsoleTask>