| title | Save Trace Results to a Table |
|---|---|
| titleSuffix | SQL Server Profiler |
| ms.prod | sql |
| ms.prod_service | sql-tools |
| ms.reviewer | |
| ms.technology | profiler |
| ms.topic | conceptual |
| ms.assetid | edbecf74-683b-4e43-a1ef-7a3d5f5e27f6 |
| author | markingmyname |
| ms.author | maghan |
| ms.custom | seo-lt-2019 |
| ms.date | 03/14/2017 |
[!INCLUDEappliesto-ss-xxxx-xxxx-xxx-md]
This topic describes how to save trace results to a database table by using [!INCLUDEssSqlProfiler].
-
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. -
In the Trace name box, type a name for the trace, and then click Save to table.
-
In the Connect to server dialog box, connect to the [!INCLUDEssNoVersion] database that will contain the trace table.
-
In the Destination Table dialog box, select a database from the Databaselist.
-
In the Owner list, select the owner for the trace.
-
In the Table list, type or select the table name for the trace results. Click OK.
-
In the Trace Properties dialog box, select the **Set maximum rows (in thousands)**check box to specify the maximum number of rows to save.