sp_trace_setevent
Adds or removes an event or event column to a trace.
What changes
- Input
- Not stated in the Microsoft summary.
- Output or change
- Adds or removes an event or event column to a trace.
Syntax at a glance
sp_trace_setevent
[ @traceid = ] traceid
, [ @eventid = ] eventid
, [ @columnid = ] columnid
, [ @on = ] on
[ ; ]
Work example
Adds or removes an event or event column to a trace.
Read the warning and prerequisites. Describe the supported maintenance context without running the procedure.
Check your work When does Microsoft support using this internal procedure?
Open Microsoft Learn for full syntax, permissions, and details for your version.