Events
31 Mar, 11 pm - 2 Apr, 11 pm
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
Azure SQL Managed Instance
This topic describes how to save trace results to a database table by using SQL Server Profiler.
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.
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.
Events
31 Mar, 11 pm - 2 Apr, 11 pm
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Module
Design a Performant Data Model in Azure SQL Database with Azure Data Studio - Training
Learn how to create a data model, tables, indexes, constraints, and use data types with Azure data studio.
Documentation
View and Analyze Traces - SQL Server
Find out how to use SQL Server Profiler to view trace data, find specific events, display object names, and troubleshoot problems.
SQL Trace
Get information about a saved trace (Transact-SQL) - SQL Server
This article describes how to use built-in functions to view information about a saved trace.