Create a Transact-SQL Script for Running a Trace (SQL Server Profiler)
2 minutes to read
In this article
THIS TOPIC APPLIES TO: SQL Server Azure SQL Database Azure SQL Data Warehouse Parallel Data Warehouse
This topic describes how to create a Transact-SQL script from an existing trace file or table by using SQL Server Profiler.
To create a Transact-SQL script to run a trace
Open a trace file or table. For more information, see
Open a Trace File (SQL Server Profiler) or Open a Trace Table (SQL Server Profiler).
Filemenu, point to Export, point to Script Trace Definition, and then click the version that corresponds to the server you want to trace.
Save As dialog box, enter a name for the script file, and then click Save. See Also
SQL Server Profiler Templates and Permissions SQL Server Profiler
The feedback system for this content will be changing soon. Old comments will not be carried over. If content within a comment thread is important to you, please save a copy. For more information on the upcoming change,
we invite you to read our blog post.