หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Applies to:
SQL Server
Azure SQL Managed Instance
This article 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.
Extract a Transact-SQL script from a trace file or table
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 select Extract Transact-SQL Events.
In the Save As dialog box, type a name for the Transact-SQL file, and select Save.