Synergetic use a script to creates SQL Agent jobs to replace standard maintenance plans for initial server setup or migration. The maintenance solution script is based on scripts created by Ola Hallengren with the schedules and job names changed to meet Synergetic requirements. Changes were made to the maintenance procedures so if a new version is released, the functions and procedures should be able to be replaced. This makes the plans simple to create, portable during server migrations and standardised amongst sites.
If a server needs the maintenance plans then this script can be run to create the following SQL Agent jobs which emulates maintenance plans:-
- Syn Database Backup (script) – Daily
- Syn Transaction Log Backup (script) – 15m intervals
- Syn Database Tune Up (script) – Weekly
- Syn Database Integrity Check (script) – Weekly
The naming of the scripted jobs is slightly different to those previously created via SSMS Management > Maintenance Plans so it is easy to differentiate a site with the new scripted jobs or the old maintenance plans.
Important note: After initial setup, the system backups and maintenance scripts become the responsibility of the system administrator and ongoing monitoring and maintenance must be performed. Synergetic support does not cover maintenance or updates/fixes to the maintenance jobs and charges may apply for assistance with these. Please see Synergetic Systems Responsibilities for further details.
Maintenance Solution Source Script
The template script can be downloaded from the Files section
*Last updated 19/02/2020 with latest Ola Hallengren stored procedures as well as enabling backup compression and checksum defaults.
Replace the variables within the parameter section to suit the requirements:
/*******************************************************
CHANGE PARAMETERS
*******************************************************/
SELECT
@BackupDirectory = N'D:\SQLBackup', -- Specify the backup root directory.
@CleanupTime = 168 -- Time in hours, after which backup files are deleted. If no time is specified, then no backup files are deleted.
/*******************************************************/
Jobs Created by this script
Reference Links
https://www.brentozar.com/archive/2018/07/ola-hallengrens-scripts-keep-getting-better/
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article