SQL Profiler

Microsoft.SQLServer.2008.Database.RunSQLProfiler (ConsoleTask)

Element properties:

TargetMicrosoft.SQLServer.2008.Database
Applicationprofiler.exe
WorkingDirectory
isRequireOutputFalse
AccessibilityInternal
EnabledTrue

Source Code:

<ConsoleTask ID="Microsoft.SQLServer.2008.Database.RunSQLProfiler" Accessibility="Internal" Target="SQL2008Core!Microsoft.SQLServer.2008.Database" RequireOutput="false" Category="MonitoringObject">
<Application>profiler.exe</Application>
<Parameters>
<Parameter>/S</Parameter>
<Parameter>$Target/Host/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ConnectionString$</Parameter>
<Parameter>/D</Parameter>
<Parameter>"$Target/Property[Type="SQL!Microsoft.SQLServer.Database"]/DatabaseName$"</Parameter>
<Parameter>/E</Parameter>
</Parameters>
<WorkingDirectory/>
</ConsoleTask>