Save Trace Results to a Table (SQL Server Profiler)
Applies To: SQL Server 2016
This topic describes how to save trace results to a database table by using SQL Server Profiler.
To save trace results to a table
On the File menu, click New Trace, and then connect to an instance of SQL Server.
The Trace Properties dialog box appears.
If Start tracing immediately after making connection is selected, the Trace Properties dialog box fails to appear and the trace begins instead. To turn off this setting, on the Tools menu, 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 SQL Server database that will contain the trace table.
In the Destination Table dialog box, select a database from the Database list.
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.