What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 42290 |  Welcome, Guest!   Register  Login
 Home > Blogs > SQL Server > Deleting backup and restore history ...
Jvprabhusanthi

Deleting backup and restore history

 Blog author: Jvprabhusanthi | Posted on: 5/10/2012 | Category: SQL Server Blogs | Views: 679 | Status: [Member] | Points: 75 | Alert Moderator   


Usually, backup and restore history will be available in the MSDB database(Microsoft Database). It's advisable to cleanup the database after archiving the databases.

 

Scenario: Considering, am having daily backups and after two years the database will be archived. In that case, the backup and restore information which is happened before two years need not be maintained and we can go for cleanup. In that case, we are using the below command to cleanup the database. You need to specify the exact dates. So that, data before that dates will be cleaned up.

 

USE msdb

EXEC sp_delete_backuphistory '1/31/2011'




Cheers,
Venkatesan Prabu .J
Head, KaaShiv InfoTech
http://kaashivinfotech.com/Ebooks.aspx
Found interesting? Add this to:


Experience:9 year(s)
Home page:http://www.dotnetfunda.com
Member since:Tuesday, May 01, 2012
Level:Starter
Status: [Member]
Biography:
>> Write Response - Respond to this post and get points

More Blogs

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/23/2013 5:09:24 AM