Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 2.05 KB

filter-events-based-on-the-event-end-time-sql-server-profiler.md

File metadata and controls

43 lines (29 loc) · 2.05 KB
title titleSuffix description author ms.author ms.date ms.service ms.subservice ms.topic ms.collection
Filter Events Based on the Event End Time
SQL Server Profiler
Filter events by ending time during a trace. Learn how to set up a filter on the event ending time in SQL Server Profiler.
rwestMSFT
randolphwest
03/14/2017
sql
profiler
how-to
data-tools

Filter Events Based on the Event End Time (SQL Server Profiler)

[!INCLUDE SQL Server Azure SQL Managed Instance] This topic describes how to filter trace events based on the event ending time by using [!INCLUDEssSqlProfiler].

To filter events based on the event end time

  1. On the File menu, click New Trace, and then connect to an instance of [!INCLUDEssNoVersion].

    The Trace Propertiesdialog box appears.

    [!NOTE]
    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.

  2. In the Trace Properties dialog box, make sure the General tab is selected, and enter a name in the TraceName text box.

  3. From the Use the templatelist, select a trace template.

  4. Optionally, specify a destination file or table in which to save the trace results.

  5. On the Events Selectiontab, click the EndTime data column to launch the Edit Filter dialog box. You can also right-click the column heading, and select Edit Column Filter.

  6. Expand Greater than or Less than, and enter a datetimevalue in the field that appears beneath the comparison operator.

See Also

SQL Server Profiler
SQL Server Profiler