Udostępnij za pośrednictwem


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

W tym temacie opisano sposób śledzenia zdarzeń, w zależności od czas zakończenia zdarzenie za pomocą filtrowania SQL Server Profiler.

Aby filtrować zdarzenie na podstawie czas zakończenia zdarzenie

  1. Na Plik menu kliknijŚledzenie nowych, a następnie połączyć się z wystąpienie SQL Server.

    The Trace Propertiesdialog box appears.

    Uwaga

    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. W Śledzenie właściwości w oknie dialogowym należy upewnić się, że Ogólne karcie jest zaznaczone i wprowadź nazwę w TraceName pole tekstowe.

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

  4. Opcjonalnie można określić plik obiekt docelowy lub tabela, w którym chcesz zapisać wyniki śledzenia.

  5. On the Events Selectiontab, click the EndTime data column to launch the Edit Filter dialog box.Można także kliknąć prawym przyciskiem myszy nagłówek kolumna i wybierz opcję Edytuj filtr kolumn.

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