How to filter system IDs in a trace (SQL Profiler)
To filter system IDs in a trace
- On the File menu, point to New, and then click Trace.
- In the Connect to SQL Server dialog box, select the server to which you want to connect and a connection method.
- In the Trace Properties dialog box, do the following:
- In the Trace name box, type a name for the trace.
- In the Template name list, select a trace template.
- Optionally, specify a save destination for the trace results.
- In the Trace name box, type a name for the trace.
- Click the Filters tab, and then in the Trace event criteria box, expand SPID.
- Expand Equals, Not equal to, Greater than or equal or Less than or equal, and then enter a value in the field that appears beneath the criterion.