To create a trace
sp_trace_setevent and sp_trace_setfilter can be executed only on existing traces that are stopped.
Important Unlike regular stored procedures, parameters of all SQL Profiler stored procedures (sp_trace_xx) are strictly typed and do not support automatic data type conversion. If these parameters are not called with the correct input parameter data types, as specified in the argument description, the stored procedure will return an error.