Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How To Configure Database Maintenance Plan to only Backup Last 7 days on SQL 2012

Posted on 2013-11-28
1
312 Views
Last Modified: 2016-02-11
Basically, as the title says, I want to configure my plan to only backup the database every night for the last 7 nights.  anything older than that should be deleted away.

The reason why is space.  The space on my HD is being eaten away rapidly.

Am I going to have to create a custom SSIS package or is there some way to configure the maintenance plan to do it?  Gotta believe there is and that Microsoft, even though often befuddling in their choices, has given me that option.

Thanks
0
Comment
Question by:cat4larry
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 39684343
Under the maintenance task there should be a "Maintenance Cleanup Task" that you can add to the plan to allow you to delete files based on age.

Further info: http://technet.microsoft.com/en-us/library/ms177182.aspx
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question