profiler
#profiler#replay-a-t-sql-script

Replay a T-SQL Script

06/06/2025 When you test possible solutions to a performance problem, use SQL Server Profiler to replay Transact-SQL scripts, and compare perform

When you test possible solutions to a performance problem, use SQL Server Profiler to replay

Transact-SQL scripts, and compare performance before and after your changes.

  1. On the

menu, point to

, and then select.

  1. Select the Transact-SQL script file you want to open. Make sure that the Transact-SQL

script contains events necessary for replay. For more information, see

Replay

Requirements.

  1. On the

menu, select

, and connect to the server where you want to replay the

script.

  1. In the

dialog box, verify the settings, and then select.

Replay Traces

Profiler