{"id":495,"date":"2012-03-04T22:47:18","date_gmt":"2012-03-04T21:47:18","guid":{"rendered":"http:\/\/www.bussink.ch\/?p=495"},"modified":"2018-05-23T18:00:48","modified_gmt":"2018-05-23T16:00:48","slug":"creating-a-maintenance-plan-for-sql-server-2008-r2-for-vcenterupdatemgrvcloud","status":"publish","type":"post","link":"https:\/\/www.bussink.ch\/?p=495","title":{"rendered":"Creating a Maintenance Plan for SQL Server 2008 R2 for vCenter\/UpdateMgr\/vCloud"},"content":{"rendered":"<p>I shall start by saying that I&#8217;m by no way a Database Administrator, but over the years I have picked up some knowledge and I have talked to a few guys that have more Knowledge on the topic to learn small tips &amp; tricks. I have created in previous posts how to quickly create a <a title=\"Create vCenter database quickly with Transact-SQL \" href=\"http:\/\/www.bussink.ch\/?p=317\" target=\"_blank\">vCenter Database using Transact-SQL scripts<\/a>, and how to create a <a title=\"vCloud Director 1.5 database creation using Transact-SQL \" href=\"http:\/\/www.bussink.ch\/?p=200\" target=\"_blank\">vCloud Director database using Transact-SQL script<\/a>. It this small article, I will just resume how to create some Maintenance Plans to ensure that your vCenter\/UpdateManager\/vCloudDirector databases are backed up. I&#8217;m not using the Full Recovery model in SQL Server 2008 R2 for my lab and my clients, so these maintenance jobs should be fine. I believe that if you have a large enough environment that is critical to your day-to-day operations, you should use the Full Recovery model, but you would then also have a real Database Administrator onsite that could manage, nurture and keep your databases in proper running condition.<\/p>\n<p>I have seem my share of transaction log databases for VMware vCenter go haywire, such that the Roll-Up jobs are not running anymore (Check your History Log) and the transaction log databases explodes. My personal worse situation was last year at a client that didn&#8217;t check their database and the transaction log database run out of storage on the disk when it passed the 90GB. There are procedures on the VMware Knowledge Base on how to compact and roll-up these huge transaction database, but it takes a lot of time. In most cases, we cut out losses and just purge the transactions logs.<\/p>\n<p>Coming back to my Maintenance plan. We will create to sets of database maintenance plans, one for the System Dababases and one for the User databases. I need to thank my friend <a title=\"Eric Krejci\" href=\"http:\/\/ekrejci.wordpress.com\" target=\"_blank\">Eric Krejci<\/a> for showing me how to separate the two maintenance plans.<\/p>\n<p><strong>System Maintenance Plan<\/strong><\/p>\n<p>We need to connect to our database server using the SQL Server Management Studio program. And from the Management folder, select the Maintenance Plan and start the Wizard.<\/p>\n<div id=\"attachment_497\" style=\"width: 519px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/01-Start-Maintenance-Plan-Wizard.jpg\"><img aria-describedby=\"caption-attachment-497\" loading=\"lazy\" class=\" wp-image-497  \" title=\"Start Maintenance Plan Wizard\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/01-Start-Maintenance-Plan-Wizard.jpg\" width=\"509\" height=\"402\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/01-Start-Maintenance-Plan-Wizard.jpg 808w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/01-Start-Maintenance-Plan-Wizard-300x236.jpg 300w\" sizes=\"(max-width: 509px) 100vw, 509px\" \/><\/a><p id=\"caption-attachment-497\" class=\"wp-caption-text\">Start Maintenance Plan Wizard<\/p><\/div>\n<p>The System databases is comprised of the Master, Model, MSDB and TempDB databases. These database don&#8217;t change much, but I will select to make a Twice Weekly maintenance and Backup Plan. Please note that the MSDB database contains all the Stored Procedures for your vCenter &amp; Update Manager database.<\/p>\n<div id=\"attachment_500\" style=\"width: 502px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/02-Define-Plan.jpg\"><img aria-describedby=\"caption-attachment-500\" loading=\"lazy\" class=\"size-full wp-image-500\" title=\"Define Maintenace Plan\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/02-Define-Plan.jpg\" width=\"492\" height=\"439\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/02-Define-Plan.jpg 492w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/02-Define-Plan-300x267.jpg 300w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/a><p id=\"caption-attachment-500\" class=\"wp-caption-text\">Define Maintenace Plan<\/p><\/div>\n<p>And let&#8217;s Schedule the Plan for two runs per week on Tuesday evening and Friday evening.<\/p>\n<div id=\"attachment_501\" style=\"width: 524px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/03-Twice-Weekly.jpg\"><img aria-describedby=\"caption-attachment-501\" loading=\"lazy\" class=\" wp-image-501  \" title=\"Job Schedule Properties\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/03-Twice-Weekly.jpg\" width=\"514\" height=\"449\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/03-Twice-Weekly.jpg 667w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/03-Twice-Weekly-300x262.jpg 300w\" sizes=\"(max-width: 514px) 100vw, 514px\" \/><\/a><p id=\"caption-attachment-501\" class=\"wp-caption-text\">Job Schedule Properties<\/p><\/div>\n<p>You can select any other pattern that you wish.I for one also use VMware Data Recovery 2.0 for making daily backup of my virtual machines, so I make sure that my\u00a0 VMware Data Recovery schedule does not run on my databases between 23:00 and 01:00.<\/p>\n<p>Now we can select the various Maintenance Tasks we want to run.<\/p>\n<div id=\"attachment_504\" style=\"width: 501px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/04-Select-Maintenance-Tasks.jpg\"><img aria-describedby=\"caption-attachment-504\" loading=\"lazy\" class=\"size-full wp-image-504\" title=\"Select Maintenance Tasks\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/04-Select-Maintenance-Tasks.jpg\" width=\"491\" height=\"440\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/04-Select-Maintenance-Tasks.jpg 491w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/04-Select-Maintenance-Tasks-300x268.jpg 300w\" sizes=\"(max-width: 491px) 100vw, 491px\" \/><\/a><p id=\"caption-attachment-504\" class=\"wp-caption-text\">Select Maintenance Tasks<\/p><\/div>\n<p>I have selected<\/p>\n<ul>\n<li>Check Database Integrity<\/li>\n<li><del>Shrink Database<\/del><\/li>\n<li>Update Statistics<\/li>\n<li>Clean Up History<\/li>\n<li>Back Up Database (Full)<\/li>\n<li>Maintenance Cleanup Task.<\/li>\n<\/ul>\n<p>And I have changed their Order around on Select Maintenance Task Order step.<\/p>\n<div id=\"attachment_505\" style=\"width: 500px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05-Select-Maintenance-Task-Order.jpg\"><img aria-describedby=\"caption-attachment-505\" loading=\"lazy\" class=\"size-full wp-image-505\" title=\"Select Maintenance Task Order\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05-Select-Maintenance-Task-Order.jpg\" width=\"490\" height=\"438\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05-Select-Maintenance-Task-Order.jpg 490w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05-Select-Maintenance-Task-Order-300x268.jpg 300w\" sizes=\"(max-width: 490px) 100vw, 490px\" \/><\/a><p id=\"caption-attachment-505\" class=\"wp-caption-text\">Select Maintenance Task Order<\/p><\/div>\n<p>So we run<\/p>\n<ol>\n<li>Check Database Integrity<\/li>\n<li>Update Statistics<\/li>\n<li>Back Up Database (Full)<\/li>\n<li><del>Shrink Database<\/del><\/li>\n<li>Maintenance Cleanup Task<\/li>\n<li>Clean Up History<\/li>\n<\/ol>\n<p>Now let&#8217;s configure the Maintenance Tasks &#8211; <strong>Define Check Database Integrity<\/strong>. I have selected for this first Maintenance Plan the System Databases.<\/p>\n<div id=\"attachment_506\" style=\"width: 554px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.1-Define-Database-Check-Integrity-Task.jpg\"><img aria-describedby=\"caption-attachment-506\" loading=\"lazy\" class=\"size-full wp-image-506\" title=\"Define Database Check Integrity Task - System Databases\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.1-Define-Database-Check-Integrity-Task.jpg\" width=\"544\" height=\"523\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.1-Define-Database-Check-Integrity-Task.jpg 544w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.1-Define-Database-Check-Integrity-Task-300x288.jpg 300w\" sizes=\"(max-width: 544px) 100vw, 544px\" \/><\/a><p id=\"caption-attachment-506\" class=\"wp-caption-text\">Define Database Check Integrity Task &#8211; System Databases<\/p><\/div>\n<p>We now <strong>Define Update Statistics Task<\/strong> for the System Databases<\/p>\n<div id=\"attachment_507\" style=\"width: 536px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.2-Define-Update-Statistics-Task-System-Databases.jpg\"><img aria-describedby=\"caption-attachment-507\" loading=\"lazy\" class=\"size-full wp-image-507\" title=\"Define Update Statistics Task - System Databases\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.2-Define-Update-Statistics-Task-System-Databases.jpg\" width=\"526\" height=\"539\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.2-Define-Update-Statistics-Task-System-Databases.jpg 526w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.2-Define-Update-Statistics-Task-System-Databases-292x300.jpg 292w\" sizes=\"(max-width: 526px) 100vw, 526px\" \/><\/a><p id=\"caption-attachment-507\" class=\"wp-caption-text\">Define Update Statistics Task &#8211; System Databases<\/p><\/div>\n<p>The next step is the definition of the back up job. <strong>Define Back Up Database (Full) Task<\/strong>. Please note that we have added the option to create a sub-directory for each database, and to verify the backup integrity. I have also modified the Backup File Extention to BAK_FULL_SYS so that we can make better use and more flexible backup cleanup maintenance job later in this article.<\/p>\n<div id=\"attachment_508\" style=\"width: 502px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.3-Define-Back-Up-Database-Full-Task.jpg\"><img aria-describedby=\"caption-attachment-508\" loading=\"lazy\" class=\"size-full wp-image-508\" title=\"Define Back Up Database (Full) Task - System Databases\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.3-Define-Back-Up-Database-Full-Task.jpg\" width=\"492\" height=\"788\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.3-Define-Back-Up-Database-Full-Task.jpg 492w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.3-Define-Back-Up-Database-Full-Task-187x300.jpg 187w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/a><p id=\"caption-attachment-508\" class=\"wp-caption-text\">Define Back Up Database (Full) Task &#8211; System Databases<\/p><\/div>\n<p>There is always a good discussion if you have enough Compute power to create a compressed backup or not.<\/p>\n<p><del>Now that we have a good full backup for the system databases we can do some database shrinkage. <strong>Define Shrink Database Task<\/strong>.<\/del><\/p>\n<p>Update 22\/03\/2013. Since I created this post, I&#8217;ve stopped using the Shrink task in the maintenance plan. I rather do it sparingly manually than automate it.<\/p>\n<div id=\"attachment_509\" style=\"width: 217px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.4-Define-Shrink-Database-Task-System-Databases.jpg\"><img aria-describedby=\"caption-attachment-509\" loading=\"lazy\" class=\" wp-image-509  \" title=\"Define Shrink Database Task - System Databases\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.4-Define-Shrink-Database-Task-System-Databases.jpg\" width=\"207\" height=\"185\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.4-Define-Shrink-Database-Task-System-Databases.jpg 493w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.4-Define-Shrink-Database-Task-System-Databases-300x267.jpg 300w\" sizes=\"(max-width: 207px) 100vw, 207px\" \/><\/a><p id=\"caption-attachment-509\" class=\"wp-caption-text\">Define Shrink Database Task &#8211; System Databases<\/p><\/div>\n<p>Now remember that we modified the Backup File Extension earlier. We we will now <strong>Define Maintenance Cleanup Task<\/strong> to erase all System Databases backups that are older than two weeks, and we will use the various sub-folders for the backups.<\/p>\n<div id=\"attachment_510\" style=\"width: 502px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.5-Define-Maintenance-Cleanup-Task.jpg\"><img aria-describedby=\"caption-attachment-510\" loading=\"lazy\" class=\"size-full wp-image-510\" title=\"Define Maintenance Cleanup Task - System Databases\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.5-Define-Maintenance-Cleanup-Task.jpg\" width=\"492\" height=\"677\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.5-Define-Maintenance-Cleanup-Task.jpg 492w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.5-Define-Maintenance-Cleanup-Task-218x300.jpg 218w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/a><p id=\"caption-attachment-510\" class=\"wp-caption-text\">Define Maintenance Cleanup Task &#8211; System Databases<\/p><\/div>\n<p>And\u00a0 last we Define History Cleanup Task for the whole SQL Server 2008 R2 instance. I did not modify the settings of this tab. This Maintenance Task will cleanup the Backup and Restory History, the SQL Server Agent job history and the Maintenance Plan History.<\/p>\n<div id=\"attachment_511\" style=\"width: 502px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.6-Define-History-Cleanup-Task.jpg\"><img aria-describedby=\"caption-attachment-511\" loading=\"lazy\" class=\"size-full wp-image-511\" title=\"Define History Cleanup Task\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.6-Define-History-Cleanup-Task.jpg\" width=\"492\" height=\"440\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.6-Define-History-Cleanup-Task.jpg 492w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.6-Define-History-Cleanup-Task-300x268.jpg 300w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/a><p id=\"caption-attachment-511\" class=\"wp-caption-text\">Define History Cleanup Task<\/p><\/div>\n<p>We will also save a copy the Maintenance Plan actions to a text file in the same directory as where the backup files are stored.<\/p>\n<div id=\"attachment_512\" style=\"width: 502px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.7-Select-Report-Option-for-Maintenance-Plan.jpg\"><img aria-describedby=\"caption-attachment-512\" loading=\"lazy\" class=\"size-full wp-image-512\" title=\"Select Report Option for Maintenance Plan\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.7-Select-Report-Option-for-Maintenance-Plan.jpg\" width=\"492\" height=\"438\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.7-Select-Report-Option-for-Maintenance-Plan.jpg 492w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.7-Select-Report-Option-for-Maintenance-Plan-300x267.jpg 300w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/a><p id=\"caption-attachment-512\" class=\"wp-caption-text\">Select Report Option for Maintenance Plan<\/p><\/div>\n<p>We now have a resume of the Maintenance Plan we can complete.<\/p>\n<div id=\"attachment_513\" style=\"width: 560px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.8-Maintenance-Plan-Wizard-Complete.jpg\"><img aria-describedby=\"caption-attachment-513\" loading=\"lazy\" class=\"size-full wp-image-513\" title=\"Maintenance Plan Wizard Complete\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/05.8-Maintenance-Plan-Wizard-Complete.jpg\" width=\"550\" height=\"807\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.8-Maintenance-Plan-Wizard-Complete.jpg 550w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/05.8-Maintenance-Plan-Wizard-Complete-204x300.jpg 204w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><p id=\"caption-attachment-513\" class=\"wp-caption-text\">Maintenance Plan Wizard Complete<\/p><\/div>\n<p>We see the new job in the Maintenance Plans section and the new job in the SQL Server Agent<\/p>\n<div id=\"attachment_516\" style=\"width: 363px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/06-Maintenance-Plan.jpg\"><img aria-describedby=\"caption-attachment-516\" loading=\"lazy\" class=\"size-full wp-image-516\" title=\"Maintenance Plans &amp; SQL Agent Jobs\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/06-Maintenance-Plan.jpg\" width=\"353\" height=\"420\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/06-Maintenance-Plan.jpg 353w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/06-Maintenance-Plan-252x300.jpg 252w\" sizes=\"(max-width: 353px) 100vw, 353px\" \/><\/a><p id=\"caption-attachment-516\" class=\"wp-caption-text\">Maintenance Plans &amp; SQL Agent Jobs<\/p><\/div>\n<p>&nbsp;<\/p>\n<p><strong>User Maintenace Plan<\/strong><\/p>\n<p>We now attack the User Databases Maintenance Plan. We start our Maintenance Plan Wizard and start the definition of the plan properties. I&#8217;m creating a Maintenance Plan for the Users Databases that will create a Differential Back Up every day, and a Full Back Up on Friday.<\/p>\n<div id=\"attachment_517\" style=\"width: 502px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.0-Users-Database-Maintenance-Plan-Properties.jpg\"><img aria-describedby=\"caption-attachment-517\" loading=\"lazy\" class=\"size-full wp-image-517\" title=\"Users Database Maintenance Plan Properties\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.0-Users-Database-Maintenance-Plan-Properties.jpg\" width=\"492\" height=\"441\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.0-Users-Database-Maintenance-Plan-Properties.jpg 492w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.0-Users-Database-Maintenance-Plan-Properties-300x268.jpg 300w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/a><p id=\"caption-attachment-517\" class=\"wp-caption-text\">Users Database Maintenance Plan Properties<\/p><\/div>\n<p>I modify the Schedule so that the main part of this Maintenance Plan including the Full Back Up happens each Friday. I will then later add a subplan to do the Differential plan each day.<\/p>\n<div id=\"attachment_518\" style=\"width: 492px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.1-Job-Schedule.jpg\"><img aria-describedby=\"caption-attachment-518\" loading=\"lazy\" class=\" wp-image-518  \" title=\"User Databases Maintenance Plan - Job Schedule\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.1-Job-Schedule.jpg\" width=\"482\" height=\"419\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.1-Job-Schedule.jpg 669w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.1-Job-Schedule-300x261.jpg 300w\" sizes=\"(max-width: 482px) 100vw, 482px\" \/><\/a><p id=\"caption-attachment-518\" class=\"wp-caption-text\">User Databases Maintenance Plan &#8211; Job Schedule<\/p><\/div>\n<p>We now add the various Maintenance Tasks for our Users Databases.<\/p>\n<div id=\"attachment_519\" style=\"width: 503px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.2-Select-Maintenance-Tasks.jpg\"><img aria-describedby=\"caption-attachment-519\" loading=\"lazy\" class=\"size-full wp-image-519\" title=\"Select Maintenance Tasks\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.2-Select-Maintenance-Tasks.jpg\" width=\"493\" height=\"439\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.2-Select-Maintenance-Tasks.jpg 493w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.2-Select-Maintenance-Tasks-300x267.jpg 300w\" sizes=\"(max-width: 493px) 100vw, 493px\" \/><\/a><p id=\"caption-attachment-519\" class=\"wp-caption-text\">Select Maintenance Tasks<\/p><\/div>\n<p>I have selected<\/p>\n<ul>\n<li>Check Database Integrity<\/li>\n<li>Shrink Database<\/li>\n<li>Rebuild Index<\/li>\n<li>Update Statistics<\/li>\n<li>Back Up Database (Full)<\/li>\n<li>Maintenance Cleanup Task<\/li>\n<\/ul>\n<p>And we Select Maintenance Task Order to move down the Shrink Database task after the Back Up Database (Full).<\/p>\n<div id=\"attachment_520\" style=\"width: 502px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.3-Select-Maintenance-Task-Order.jpg\"><img aria-describedby=\"caption-attachment-520\" loading=\"lazy\" class=\"size-full wp-image-520\" title=\"Select Maintenance Task Order\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.3-Select-Maintenance-Task-Order.jpg\" width=\"492\" height=\"441\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.3-Select-Maintenance-Task-Order.jpg 492w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.3-Select-Maintenance-Task-Order-300x268.jpg 300w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/a><p id=\"caption-attachment-520\" class=\"wp-caption-text\">Select Maintenance Task Order<\/p><\/div>\n<p>So we run<\/p>\n<ol>\n<li>Check Database Integrity<\/li>\n<li>Rebuild Index<\/li>\n<li>Update Statistics<\/li>\n<li>Back Up Database (Full)<\/li>\n<li>Shrink Database<\/li>\n<li>Maintenance Cleanup Task<\/li>\n<\/ol>\n<p>The first Task to run is the <strong>Database Check Integrity Task<\/strong> where we select the Users Databases<\/p>\n<div id=\"attachment_521\" style=\"width: 552px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.4-Database-Check-Integrity-Task-Users-Databases.jpg\"><img aria-describedby=\"caption-attachment-521\" loading=\"lazy\" class=\"size-full wp-image-521\" title=\"Database Check Integrity Task - Users Databases\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.4-Database-Check-Integrity-Task-Users-Databases.jpg\" width=\"542\" height=\"523\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.4-Database-Check-Integrity-Task-Users-Databases.jpg 542w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.4-Database-Check-Integrity-Task-Users-Databases-300x289.jpg 300w\" sizes=\"(max-width: 542px) 100vw, 542px\" \/><\/a><p id=\"caption-attachment-521\" class=\"wp-caption-text\">Database Check Integrity Task &#8211; User Databases<\/p><\/div>\n<p>We then <strong>Rebuild Index Task<\/strong> for the Users Databases<\/p>\n<div id=\"attachment_523\" style=\"width: 551px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.5-Rebuild-Index-Task-Users-Databases.jpg\"><img aria-describedby=\"caption-attachment-523\" loading=\"lazy\" class=\"size-full wp-image-523\" title=\"Rebuild Index Task - Users Databases\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.5-Rebuild-Index-Task-Users-Databases.jpg\" width=\"541\" height=\"581\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.5-Rebuild-Index-Task-Users-Databases.jpg 541w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.5-Rebuild-Index-Task-Users-Databases-279x300.jpg 279w\" sizes=\"(max-width: 541px) 100vw, 541px\" \/><\/a><p id=\"caption-attachment-523\" class=\"wp-caption-text\">Rebuild Index Task &#8211; User Databases<\/p><\/div>\n<p>We <strong>Define Update Statistics Task<\/strong> for the User Databases.<\/p>\n<div id=\"attachment_524\" style=\"width: 536px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.6-Update-Statistics-Task-User-Databases.jpg\"><img aria-describedby=\"caption-attachment-524\" loading=\"lazy\" class=\"size-full wp-image-524\" title=\"Update Statistics Task - User Databases\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.6-Update-Statistics-Task-User-Databases.jpg\" width=\"526\" height=\"538\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.6-Update-Statistics-Task-User-Databases.jpg 526w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.6-Update-Statistics-Task-User-Databases-293x300.jpg 293w\" sizes=\"(max-width: 526px) 100vw, 526px\" \/><\/a><p id=\"caption-attachment-524\" class=\"wp-caption-text\">Update Statistics Task &#8211; User Databases<\/p><\/div>\n<p>We now do the<strong> Back Up Database (Full) Task<\/strong> for the User Databases. Note that we use sub-directories for each database, we changed teh Backup File extionsion to <strong>BAK_FULL_USR<\/strong> and we verify the integrity of the backup.<\/p>\n<div id=\"attachment_525\" style=\"width: 503px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.7-Back-Up-Database-Full-Task.jpg\"><img aria-describedby=\"caption-attachment-525\" loading=\"lazy\" class=\"size-full wp-image-525\" title=\"Back Up Database (Full) Task - User Databases\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.7-Back-Up-Database-Full-Task.jpg\" width=\"493\" height=\"789\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.7-Back-Up-Database-Full-Task.jpg 493w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.7-Back-Up-Database-Full-Task-187x300.jpg 187w\" sizes=\"(max-width: 493px) 100vw, 493px\" \/><\/a><p id=\"caption-attachment-525\" class=\"wp-caption-text\">Back Up Database (Full) Task &#8211; User Databases<\/p><\/div>\n<p>Once we have the Full Back Up of the User Databases we can launch the <strong>Shrink Database Task<\/strong>.<\/p>\n<div id=\"attachment_526\" style=\"width: 503px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.8-Shrink-Database-Task-User-Databases.jpg\"><img aria-describedby=\"caption-attachment-526\" loading=\"lazy\" class=\"size-full wp-image-526\" title=\"Shrink Database Task - User Databases\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.8-Shrink-Database-Task-User-Databases.jpg\" width=\"493\" height=\"442\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.8-Shrink-Database-Task-User-Databases.jpg 493w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.8-Shrink-Database-Task-User-Databases-300x268.jpg 300w\" sizes=\"(max-width: 493px) 100vw, 493px\" \/><\/a><p id=\"caption-attachment-526\" class=\"wp-caption-text\">Shrink Database Task &#8211; User Databases<\/p><\/div>\n<p>We now setup the <strong>Maintenance Cleanup Task<\/strong> for the User Databases so that we keep only the last two weekly full backups.<\/p>\n<div id=\"attachment_527\" style=\"width: 502px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.9-Maintenance-Cleanup-Task-User-Databases.jpg\"><img aria-describedby=\"caption-attachment-527\" loading=\"lazy\" class=\"size-full wp-image-527\" title=\"Maintenance Cleanup Task - User Databases\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.9-Maintenance-Cleanup-Task-User-Databases.jpg\" width=\"492\" height=\"679\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.9-Maintenance-Cleanup-Task-User-Databases.jpg 492w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.9-Maintenance-Cleanup-Task-User-Databases-217x300.jpg 217w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/a><p id=\"caption-attachment-527\" class=\"wp-caption-text\">Maintenance Cleanup Task &#8211; User Databases<\/p><\/div>\n<p>And we save the Maintenance Plan Report to the job_history directory.<\/p>\n<div id=\"attachment_528\" style=\"width: 501px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.10-Report-Options.jpg\"><img aria-describedby=\"caption-attachment-528\" loading=\"lazy\" class=\"size-full wp-image-528\" title=\"Maintenance Plan Report Path\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.10-Report-Options.jpg\" width=\"491\" height=\"439\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.10-Report-Options.jpg 491w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.10-Report-Options-300x268.jpg 300w\" sizes=\"(max-width: 491px) 100vw, 491px\" \/><\/a><p id=\"caption-attachment-528\" class=\"wp-caption-text\">Maintenance Plan Report Path<\/p><\/div>\n<p>We now have a complete Maintenace Plan ready.<\/p>\n<div id=\"attachment_531\" style=\"width: 528px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.11-Maintenance-Plan-Wizard-Complete.jpg\"><img aria-describedby=\"caption-attachment-531\" loading=\"lazy\" class=\"size-full wp-image-531\" title=\"User Databases Maintenance Plan Wizard Complete\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.11-Maintenance-Plan-Wizard-Complete.jpg\" width=\"518\" height=\"832\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.11-Maintenance-Plan-Wizard-Complete.jpg 518w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.11-Maintenance-Plan-Wizard-Complete-186x300.jpg 186w\" sizes=\"(max-width: 518px) 100vw, 518px\" \/><\/a><p id=\"caption-attachment-531\" class=\"wp-caption-text\">User Databases Maintenance Plan Wizard Complete<\/p><\/div>\n<p>This creates the new Maintenance Plan and the SQL Agent Job.<\/p>\n<div id=\"attachment_532\" style=\"width: 360px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.12-Maintenance-Plan-SQL-Agent-Jobs.jpg\"><img aria-describedby=\"caption-attachment-532\" loading=\"lazy\" class=\"size-full wp-image-532\" title=\"Maintenance Plan &amp; SQL Agent Jobs\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/07.12-Maintenance-Plan-SQL-Agent-Jobs.jpg\" width=\"350\" height=\"444\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.12-Maintenance-Plan-SQL-Agent-Jobs.jpg 350w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/07.12-Maintenance-Plan-SQL-Agent-Jobs-236x300.jpg 236w\" sizes=\"(max-width: 350px) 100vw, 350px\" \/><\/a><p id=\"caption-attachment-532\" class=\"wp-caption-text\">Maintenance Plan &amp; SQL Agent Jobs<\/p><\/div>\n<p>We now select to<strong> Modify<\/strong> the User Databases &#8211; MaintenancePlan<\/p>\n<div id=\"attachment_535\" style=\"width: 430px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/08-Modify-User-Databases-Maintenance-Plan-Rename-Subplan_1-to-Subplan_Weekly1.jpg\"><img aria-describedby=\"caption-attachment-535\" loading=\"lazy\" class=\"size-full wp-image-535\" title=\"Modify User Databases Maintenance Plan\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/08-Modify-User-Databases-Maintenance-Plan-Rename-Subplan_1-to-Subplan_Weekly1.jpg\" width=\"420\" height=\"295\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/08-Modify-User-Databases-Maintenance-Plan-Rename-Subplan_1-to-Subplan_Weekly1.jpg 420w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/08-Modify-User-Databases-Maintenance-Plan-Rename-Subplan_1-to-Subplan_Weekly1-300x210.jpg 300w\" sizes=\"(max-width: 420px) 100vw, 420px\" \/><\/a><p id=\"caption-attachment-535\" class=\"wp-caption-text\">Modify User Databases Maintenance Plan<\/p><\/div>\n<p>And let&#8217;s quickly rename the Subplan_1 to Subplan_Weekly in the Subplan menu.<\/p>\n<div id=\"attachment_536\" style=\"width: 383px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/09-Rename-Subplan_1-to-Subplan_Weekly.jpg\"><img aria-describedby=\"caption-attachment-536\" loading=\"lazy\" class=\"size-full wp-image-536\" title=\"Rename Subplan_1 to Subplan_Weekly\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/09-Rename-Subplan_1-to-Subplan_Weekly.jpg\" width=\"373\" height=\"169\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/09-Rename-Subplan_1-to-Subplan_Weekly.jpg 373w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/09-Rename-Subplan_1-to-Subplan_Weekly-300x135.jpg 300w\" sizes=\"(max-width: 373px) 100vw, 373px\" \/><\/a><p id=\"caption-attachment-536\" class=\"wp-caption-text\">Rename Subplan_1 to Subplan_Weekly<\/p><\/div>\n<p>So we can now Add Subplan to this Maintenance Task<\/p>\n<div id=\"attachment_537\" style=\"width: 491px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/10-Add-Subplan_Daily.jpg\"><img aria-describedby=\"caption-attachment-537\" loading=\"lazy\" class=\"size-full wp-image-537\" title=\"Add Subplan_Daily\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/10-Add-Subplan_Daily.jpg\" width=\"481\" height=\"391\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/10-Add-Subplan_Daily.jpg 481w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/10-Add-Subplan_Daily-300x243.jpg 300w\" sizes=\"(max-width: 481px) 100vw, 481px\" \/><\/a><p id=\"caption-attachment-537\" class=\"wp-caption-text\">Add Subplan_Daily<\/p><\/div>\n<p>And we edit the Job Schedule to run everyday but Friday at the same time.<\/p>\n<div id=\"attachment_538\" style=\"width: 475px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/11-Job-Schedule-Subplan_Daily.jpg\"><img aria-describedby=\"caption-attachment-538\" loading=\"lazy\" class=\" wp-image-538 \" title=\"Job Schedule Subplan_Daily\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/11-Job-Schedule-Subplan_Daily.jpg\" width=\"465\" height=\"407\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/11-Job-Schedule-Subplan_Daily.jpg 665w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/11-Job-Schedule-Subplan_Daily-300x262.jpg 300w\" sizes=\"(max-width: 465px) 100vw, 465px\" \/><\/a><p id=\"caption-attachment-538\" class=\"wp-caption-text\">Job Schedule Subplan_Daily<\/p><\/div>\n<p>We will now drag and drop the <strong>Back Up Database Task<\/strong> into the <strong>Subplan_Daily<\/strong><\/p>\n<div id=\"attachment_539\" style=\"width: 485px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/12-Drag-Back-Up-Database-Task-in-Subplan_Daily.jpg\"><img aria-describedby=\"caption-attachment-539\" loading=\"lazy\" class=\" wp-image-539  \" title=\"Back Up Database Task in Subplan_Daily\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/12-Drag-Back-Up-Database-Task-in-Subplan_Daily.jpg\" width=\"475\" height=\"270\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/12-Drag-Back-Up-Database-Task-in-Subplan_Daily.jpg 990w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/12-Drag-Back-Up-Database-Task-in-Subplan_Daily-300x170.jpg 300w\" sizes=\"(max-width: 475px) 100vw, 475px\" \/><\/a><p id=\"caption-attachment-539\" class=\"wp-caption-text\">Back Up Database Task in Subplan_Daily<\/p><\/div>\n<p>We now edit the Back Up Database Task<\/p>\n<div id=\"attachment_542\" style=\"width: 371px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/13-Edit-Back-Up-Database-Task.jpg\"><img aria-describedby=\"caption-attachment-542\" loading=\"lazy\" class=\"size-full wp-image-542\" title=\"Edit Back Up Database Task\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/13-Edit-Back-Up-Database-Task.jpg\" width=\"361\" height=\"379\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/13-Edit-Back-Up-Database-Task.jpg 361w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/13-Edit-Back-Up-Database-Task-285x300.jpg 285w\" sizes=\"(max-width: 361px) 100vw, 361px\" \/><\/a><p id=\"caption-attachment-542\" class=\"wp-caption-text\">Edit Back Up Database Task<\/p><\/div>\n<p>And we modify the <strong>Back Up Database Task for Differential Jobs<\/strong>, we also make sure the backups are written in their correct directories, that they are verified, and that the Backup File Extension is <strong>BAK_DIFF_USR<\/strong>.<\/p>\n<div id=\"attachment_543\" style=\"width: 603px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/14-Back-Up-Database-Task-User-Databases-Differential-Job.jpg\"><img aria-describedby=\"caption-attachment-543\" loading=\"lazy\" class=\"size-full wp-image-543\" title=\"Back Up Database Task - User Databases - Differential Job\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/14-Back-Up-Database-Task-User-Databases-Differential-Job.jpg\" width=\"593\" height=\"625\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/14-Back-Up-Database-Task-User-Databases-Differential-Job.jpg 593w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/14-Back-Up-Database-Task-User-Databases-Differential-Job-284x300.jpg 284w\" sizes=\"(max-width: 593px) 100vw, 593px\" \/><\/a><p id=\"caption-attachment-543\" class=\"wp-caption-text\">Back Up Database Task &#8211; User Databases &#8211; Differential Job<\/p><\/div>\n<p>We now add the <strong>Maintenance Cleanup Task<\/strong> to this Subplan_Daily job and Linked it to the Back Up Database Task.<\/p>\n<div id=\"attachment_545\" style=\"width: 564px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/15-Add-Maintenance-Cleanup-Task.jpg\"><img aria-describedby=\"caption-attachment-545\" loading=\"lazy\" class=\" wp-image-545 \" title=\"Add Maintenance Cleanup Task\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/15-Add-Maintenance-Cleanup-Task.jpg\" width=\"554\" height=\"259\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/15-Add-Maintenance-Cleanup-Task.jpg 791w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/15-Add-Maintenance-Cleanup-Task-300x140.jpg 300w\" sizes=\"(max-width: 554px) 100vw, 554px\" \/><\/a><p id=\"caption-attachment-545\" class=\"wp-caption-text\">Add Maintenance Cleanup Task<\/p><\/div>\n<p>And we will edit the <strong>Maintenance Cleanup Task<\/strong> so that we erase the old BAK_DIFF_USR files.<\/p>\n<div id=\"attachment_546\" style=\"width: 486px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/16-Maintenance-Cleanup-Task.jpg\"><img aria-describedby=\"caption-attachment-546\" loading=\"lazy\" class=\"size-full wp-image-546\" title=\"Maintenance Cleanup Task\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/16-Maintenance-Cleanup-Task.jpg\" width=\"476\" height=\"557\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/16-Maintenance-Cleanup-Task.jpg 476w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/16-Maintenance-Cleanup-Task-256x300.jpg 256w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/><\/a><p id=\"caption-attachment-546\" class=\"wp-caption-text\">Maintenance Cleanup Task 1 &#8211; Backup Files<\/p><\/div>\n<p>We add a 2nd <strong>Maintenance Cleanup Task<\/strong> to clean up the old text reports that are older than 4 weeks.<\/p>\n<div id=\"attachment_547\" style=\"width: 525px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/17-Maintenance-Cleanup-Task-Text-Reports.jpg\"><img aria-describedby=\"caption-attachment-547\" loading=\"lazy\" class=\" wp-image-547 \" title=\"Maintenance Cleanup Task Text Reports\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/17-Maintenance-Cleanup-Task-Text-Reports.jpg\" width=\"515\" height=\"393\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/17-Maintenance-Cleanup-Task-Text-Reports.jpg 735w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/17-Maintenance-Cleanup-Task-Text-Reports-300x229.jpg 300w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/a><p id=\"caption-attachment-547\" class=\"wp-caption-text\">Maintenance Cleanup Task 2 &#8211; Text Reports<\/p><\/div>\n<p>We are now done with the User Databases Maintenance Plan. Do NOT forget to SAVE the Maintenace Plan before quiting it.<\/p>\n<p>We now have two specific<strong> SQL Server Agent Jobs<\/strong>.<\/p>\n<div id=\"attachment_549\" style=\"width: 365px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/18-SQL-Server-Agent-Jobs.jpg\"><img aria-describedby=\"caption-attachment-549\" loading=\"lazy\" class=\"size-full wp-image-549 \" title=\"SQL Server Agent Jobs\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/18-SQL-Server-Agent-Jobs.jpg\" width=\"355\" height=\"374\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/18-SQL-Server-Agent-Jobs.jpg 355w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/18-SQL-Server-Agent-Jobs-284x300.jpg 284w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/a><p id=\"caption-attachment-549\" class=\"wp-caption-text\">SQL Server Agent Jobs<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>We will now run the <strong>Maintenace Plan Jobs<\/strong>. We start with the System Database job using Start Job at Step&#8230;<\/p>\n<div id=\"attachment_550\" style=\"width: 504px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/19-Running-Maintenace-Plan-Jobs-System-Databases.jpg\"><img aria-describedby=\"caption-attachment-550\" loading=\"lazy\" class=\"size-full wp-image-550\" title=\"Running Maintenace Plan Jobs - System Databases\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/19-Running-Maintenace-Plan-Jobs-System-Databases.jpg\" width=\"494\" height=\"285\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/19-Running-Maintenace-Plan-Jobs-System-Databases.jpg 494w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/19-Running-Maintenace-Plan-Jobs-System-Databases-300x173.jpg 300w\" sizes=\"(max-width: 494px) 100vw, 494px\" \/><\/a><p id=\"caption-attachment-550\" class=\"wp-caption-text\">Running Maintenace Plan Jobs &#8211; System Databases<\/p><\/div>\n<p>And for the User Databases we will first start the Full Back Up Task, before doing the Differential Back Up Task.<\/p>\n<div id=\"attachment_552\" style=\"width: 526px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/20-Running-Maintenance-Plan-User-Database-Subplan_Weekly.jpg\"><img aria-describedby=\"caption-attachment-552\" loading=\"lazy\" class=\"size-full wp-image-552\" title=\"Running Maintenance Plan - User Database - Subplan_Weekly\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/20-Running-Maintenance-Plan-User-Database-Subplan_Weekly.jpg\" width=\"516\" height=\"238\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/20-Running-Maintenance-Plan-User-Database-Subplan_Weekly.jpg 516w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/20-Running-Maintenance-Plan-User-Database-Subplan_Weekly-300x138.jpg 300w\" sizes=\"(max-width: 516px) 100vw, 516px\" \/><\/a><p id=\"caption-attachment-552\" class=\"wp-caption-text\">Running Maintenance Plan &#8211; User Database &#8211; Subplan_Weekly<\/p><\/div>\n<div id=\"attachment_553\" style=\"width: 513px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/21-Running-Maintenance-Plan-User-Database-Subplan_Daily.jpg\"><img aria-describedby=\"caption-attachment-553\" loading=\"lazy\" class=\"size-full wp-image-553\" title=\"Running Maintenance Plan - User Database - Subplan_Daily\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/21-Running-Maintenance-Plan-User-Database-Subplan_Daily.jpg\" width=\"503\" height=\"128\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/21-Running-Maintenance-Plan-User-Database-Subplan_Daily.jpg 503w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/21-Running-Maintenance-Plan-User-Database-Subplan_Daily-300x76.jpg 300w\" sizes=\"(max-width: 503px) 100vw, 503px\" \/><\/a><p id=\"caption-attachment-553\" class=\"wp-caption-text\">Running Maintenance Plan &#8211; User Database &#8211; Subplan_Daily<\/p><\/div>\n<p>When we check the Backup folder we now have a full back of the System Databases and User Databases (Full and Differential).<\/p>\n<div id=\"attachment_554\" style=\"width: 571px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/22-vCenter-Server-Backup-Full-and-Diff.jpg\"><img aria-describedby=\"caption-attachment-554\" loading=\"lazy\" class=\" wp-image-554   \" title=\"vCenter Server Backup Full and Diff\" alt=\"\" src=\"http:\/\/www.bussink.ch\/wp-content\/uploads\/\/2012\/03\/22-vCenter-Server-Backup-Full-and-Diff.jpg\" width=\"561\" height=\"196\" srcset=\"https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/22-vCenter-Server-Backup-Full-and-Diff.jpg 1064w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/22-vCenter-Server-Backup-Full-and-Diff-300x104.jpg 300w, https:\/\/www.bussink.ch\/wp-content\/uploads\/2012\/03\/22-vCenter-Server-Backup-Full-and-Diff-1024x357.jpg 1024w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/a><p id=\"caption-attachment-554\" class=\"wp-caption-text\">vCenter Server Backup Full and Diff<\/p><\/div>\n<p>There you are with a Maintenance Plan for the SQL Server 2008 R2 running your vCenter, Update Manager and vCloud Director databases.<\/p>\n<p>I hope this will help you.<\/p>\n<p>I have to thank once more my friend <a title=\"Eric Krejci\" href=\"http:\/\/ekrejci.wordpress.com\" target=\"_blank\">Eric Krejci<\/a> as we have discussed this topic extensively a few months ago and he already <a title=\"vCenter MSSQL DBs Backup and Maintenance\" href=\"http:\/\/ekrejci.wordpress.com\/2011\/12\/23\/vcenter-mssql-dbs-backup-and-maintenance\/\" target=\"_blank\">wrote the same article on vCenter and SQL Backup and Maintenance<\/a> on his web blog.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I shall start by saying that I&#8217;m by no way a Database Administrator, but over the years I have picked up some knowledge and I have talked to a few guys that have more Knowledge on the topic to learn small tips &amp; tricks. I have created in previous posts how to quickly create a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":549,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,9],"tags":[47,46,28,19,48],"_links":{"self":[{"href":"https:\/\/www.bussink.ch\/index.php?rest_route=\/wp\/v2\/posts\/495"}],"collection":[{"href":"https:\/\/www.bussink.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bussink.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bussink.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bussink.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=495"}],"version-history":[{"count":23,"href":"https:\/\/www.bussink.ch\/index.php?rest_route=\/wp\/v2\/posts\/495\/revisions"}],"predecessor-version":[{"id":1996,"href":"https:\/\/www.bussink.ch\/index.php?rest_route=\/wp\/v2\/posts\/495\/revisions\/1996"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bussink.ch\/index.php?rest_route=\/wp\/v2\/media\/549"}],"wp:attachment":[{"href":"https:\/\/www.bussink.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bussink.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bussink.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}