Upgrading Ola Hallengren's Maintenance Solution with dbatools
While presenting Backup Basics with PowerShell and dbatools at ONDT, I mentioned a caveat with the -ReplaceExisting
switch for Install-DbaMaintenanceSolution
. This switch drops all of the objects installed by the Maintenance Solution, including the CommandLog
table. If you use that table to produce evidence that the various maintenance tasks are being performed on a regular basis or use it to track performance of those tasks over time, dropping that table presents a problem.