Solved

maintenance task sql 2008 management studio

Posted on 2014-12-12
5
90 Views
Last Modified: 2014-12-12
I have a maintenance task that deletes all .bak files after a 15 day period.
it's not deleting .trn files...
is there a way to make this task delete .trn and .bak files with the same task.
Thanks a bunch
experts-exchange-sql-main-task.jpg
0
Comment
Question by:jamesmetcalf74
5 Comments
 
LVL 45

Accepted Solution

by:
Vitor Montalvão earned 125 total points
Comment Utility
If your backups are in a single folder then you can provide the folder name and delete all files (*).
0
 
LVL 69

Assisted Solution

by:ScottPletcher
ScottPletcher earned 125 total points
Comment Utility
Click the "Help" button on that screen.  It should further describe the columns on the screen, including the file extension.   The wording seems to indicate that it's only a single value.  If so, you could set up a second maintenance task to do the .trn files.
0
 
LVL 23

Assisted Solution

by:Racim BOUDJAKDJI
Racim BOUDJAKDJI earned 250 total points
Comment Utility
<<If your backups are in a single folder then you can provide the folder name and delete all files (*).>>
Or perhaps remove the folder if the folder contains only the backups for a specific term.  A much faster operation.  ;)
0
 
LVL 23

Assisted Solution

by:Racim BOUDJAKDJI
Racim BOUDJAKDJI earned 250 total points
Comment Utility
It seems you do not have a log cleansing process in your current log backup job or step.  Please identify the log backup job or step maintenance and copy it while adding cleansing in the new job.  You then only have to disable the old log backup job/step
0
 

Author Closing Comment

by:jamesmetcalf74
Comment Utility
Thanks guys
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now