Filter Events Based on the Event Start Time (SQL Server Profiler)
Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).
This topic describes how to filter trace events based on the event start time by using SQL Server Profiler.
To filter an event based on the event start time
On the File menu, click New Trace, and then connect to an instance of SQL Server.
The Trace Propertiesdialog box appears.
If Start tracing immediately after making connectionis selected, the Trace Propertiesdialog box fails to appear, and the trace begins instead. To turn off this setting, on the Toolsmenu, click Options, and clear the Start tracing immediately after making connection check box.
In the Trace name box, type a name for the trace.
In the Use the templatename list, select a trace template.
Optionally specify a destination for the trace results.
On the Events Selectiontab, click the StartTime column heading. You can also right-click the column heading, and then click Edit Column Filter to launch the Edit Filter dialog box.
Expand Greater than or Less than, and then enter a datetime value in the field that appears beneath the comparison operator.