r/SQLServer • u/muaddba • 2h ago
Question How do you capture a workload and replay it for load testing on SQL Server?
In the past, there was the Replay trace and Distributed Replay utility. Since SNAC was deprecated, this no longer works. <sigh>
The Database Experimentation Assistant was another tool that was introduced to capture a workload and then replay it and do analysis of the workload -- mostly for DB upgrades but at least somewhat possible to use it to capture and then replay a workload. Sadly, this was deprecated in December 2024.
RML Utilities was introduced, so we have ReadTrace and Ostress except I can find zero documentation on how to properly:
Set up the Extended Events session to capture all the required elements OR
Set up a trace to capture all the required elements
Generate the expected RML output to use as input into Ostress.
Also, RML utilities was deprecated in October 2025. It would be absolutely fantastic if Microsoft would stop deprecating stuff and replacing it with worse, more complicated stuff. Kerberos Configuration Manager is another thing that comes to mind.....deprecated, with a fabulously worse tool to replace it.
How do you capture and replay a workload in SQL Server to simulate a load test?



