SQL Server Profiler Stored Procedures (Transact-SQL)

APPLIES TO: YesSQL Server NoAzure SQL Database NoAzure Synapse Analytics (SQL DW) NoParallel Data Warehouse

SQL Server supports the following system stored procedures that are used by SQL Server Profiler to monitor performance and activity.

sp_trace_create sp_trace_setfilter
sp_trace_generateevent sp_trace_setstatus

For an example of using trace stored procedures, see Create a Trace (Transact-SQL).

See Also

SQL Server Event Class Reference
SQL Trace
System Stored Procedures (Transact-SQL)