| title | Extract a Script from a Trace (SQL Server Profiler) | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 03/14/2017 | ||
| ms.prod | sql-non-specified | ||
| ms.prod_service | sql-non-specified | ||
| ms.service | |||
| ms.component | sql-server-profiler | ||
| ms.reviewer | |||
| ms.suite | sql | ||
| ms.technology |
|
||
| ms.tgt_pltfrm | |||
| ms.topic | article | ||
| helpviewer_keywords |
|
||
| ms.assetid | 431126a6-ff91-4818-8763-4442152bd571 | ||
| caps.latest.revision | 20 | ||
| author | JennieHubbard | ||
| ms.author | jhubbard | ||
| manager | jhubbard | ||
| ms.workload | Inactive |
[!INCLUDEappliesto-ss-xxxx-xxxx-xxx-md] This topic describes how to extract [!INCLUDEtsql] events from a trace file or table and save them as a [!INCLUDEtsql] script file by using [!INCLUDEssSqlProfiler].
-
Open a trace file or table that contains [!INCLUDEtsql] events that you want to save to a [!INCLUDEtsql] 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 [!INCLUDEtsql] file, and click Save.