Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

How to: Replay a Transact-SQL Script (SQL Server Profiler)

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 File menu, point to Open, and then click Script File.

  2. 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.

  3. On the Replay menu, click Start, and connect to the server where you want to replay the script.

  4. In the Replay Configuration dialog box, verify the settings, and then click OK.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft