Events
Mar 31, 11 PM - Apr 2, 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 extract Transact-SQL events from a trace file or table and save them as a Transact-SQL script file by using SQL Server Profiler.
Open a trace file or table that contains Transact-SQL events that you want to save to a Transact-SQL script file. For more information, see Open a Trace File (SQL Server Profiler) or Open a Trace Table (SQL Server Profiler).
On the File menu, point to Export, point to Extract SQL Server Events, and then click Extract Transact-SQL Events.
In the Save As dialog box, type a name for the Transact-SQL file, and click Save.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Documentation
Save Trace Results to a Table - SQL Server Profiler
Learn how to use SQL Server Profiler to save trace results to a table in a SQL Server database. Find out how you can specify the maximum number of rows to save.
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.
Organize Columns Displayed in a Trace - SQL Server Profiler
Make it easier to analyze SQL Server Profiler trace output by grouping and aggregating events when you define or view a trace.