What is the difference between "Maintenance Clean Up" and "Clean Up History" ?
-
22 กุมภาพันธ์ 2555 3:41
Just get a maintenance plan guide from vendor asking us to perform "Maintenance Clean Up" - Once a day, 3 days after last successful backup AND "Clean Up History" - Once a month.
We would like to seek your advice whether "Maintenance Clean Up" should be after "Transaction Log / Database Backup" ? If it is run once a day, 3 days after last successful backup, does it mean that it will keep the database and transaction log backup for 3 days ?
On the other hand, what will be the "Clean Up History" ? What will be cleaned up ? Is there any SQL Script that I can run interactively to perform "Clean Up History" task ?
Your advice is sought.
- แก้ไขโดย TonyJK 22 กุมภาพันธ์ 2555 3:43
ตอบทั้งหมด
-
22 กุมภาพันธ์ 2555 9:47
Hi Tony,
Maintenance clean up task is to basically remove the old backups (.bak and .trn) after a specific interval.
History cleanup is to cleaup the history of the backups, maintenance plans etc.
What you need to do is to edit the current maintenance plan which does backup and add tasks ("maintenance clean up" and "cleanup history")which runs after the success of the backup tasks to do these tasks.
This Link gives you altenatives for cleaning up history.
HTH
Regards, Ashwin Menon My Blog - http:\\sqllearnings.wordpress.com
- เสนอเป็นคำตอบโดย Sean GallardyMicrosoft Community Contributor, Editor 22 กุมภาพันธ์ 2555 13:52
- ทำเครื่องหมายเป็นคำตอบโดย TonyJK 24 กุมภาพันธ์ 2555 0:06
-
20 เมษายน 2555 7:31
Hi Tony,
Using using Maintenance cleanup task we can we can delete .bak files,.trn and .txt files
using History cleanup task we can delete .bak,.trn , .txt files and also we can delete sql agent job historry which is available in error log file