Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 2.09 KB

set-a-maximum-table-size-for-a-trace-table-sql-server-profiler.md

File metadata and controls

53 lines (34 loc) · 2.09 KB
title titleSuffix description author ms.author ms.date ms.service ms.subservice ms.topic ms.collection
Set a Maximum Table Size for a Trace Table
SQL Server Profiler
Find out how to limit the size of a trace table. Use SQL Server Profiler to specify the maximum number of rows the table can have.
rwestMSFT
randolphwest
03/01/2017
sql
profiler
how-to
data-tools

Set a Maximum Table Size for a Trace Table (SQL Server Profiler)

[!INCLUDE SQL Server Azure SQL Managed Instance]

This topic describes how to set a maximum table size for trace tables by using [!INCLUDEssSqlProfiler].

To set a maximum table size for a trace table

  1. On the File menu, click New Trace, and then connect to an instance of SQL Server.

    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 name box, type a name for the trace.

  3. In the Template namelist, select a trace template.

  4. Select the Save to tablecheck box.

  5. Connect to the server on which you want the trace to be stored.

    The Destination Table dialog box appears.

  6. Select a database for the trace from the Database list.

  7. In the Table box, type or select a table name.

  8. Select the Set maximum rows check box, and specify a maximum number of rows for the trace table.

    [!NOTE]
    When the number of rows in the table exceeds the maximum that you have specified, the trace events are no longer recorded. However, tracing continues.

See Also

SQL Server Profiler
SQL Server Profiler