Blog Post

SQL Server Database Experimentation Assistant - How to Run a Capture

,

DEA

Very basic look at the setup as I couldn’t find much documentation on this when I last tried this out in 2018. Maybe it will help you get started a little more quickly. I’ve not had a chance to leverage the actual comparisons across a large workload. When I originally wrote up the basics on this last year I found my needs required more customized load testing approaches.

Adding The Feature

Added the DRCReplay.exe and the controller services by pulling up the feature setup and adding existing features to existing SQL instance installed.

Pointed the controller directory to a new directory I created

1
2
[io.directory]::CreateDirectory('X:Microsoft SQL ServerDReplayClientWorkingDir')
[io.directory]::CreateDirectory('X:Microsoft SQL ServerDReplayClientResultDir')

Initializing Test

Started with backup of the database before executing the activity I wanted to trace.

1
dbatoolsbackup-dbadatabase -sqlinstance localhost -database $Dbname -CopyOnly -CompressBackup

Initialized application application activity, and then recorded in DEA. The result was now in the capture section.

Restoring after trace was recorded in DEA was simple with the following command from Dbatools

1
restore-dbadatabase -SqlInstance localhost -Path "<BackupFilePath>" -DatabaseName SMALL -WithReplace

After this restore, initiating the replay was achieved by going to the replay tab.

Original post (opens in new tab)

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating