Solved

maintenance task sql 2008 management studio

Posted on 2014-12-12
5
95 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
[X]
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
5 Comments
 
LVL 50

Accepted Solution

by:
Vitor Montalvão earned 125 total points
ID: 40496351
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:Scott Pletcher
Scott Pletcher earned 125 total points
ID: 40496550
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
ID: 40496554
<<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
ID: 40496560
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
ID: 40496681
Thanks guys
0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

Suggested Solutions

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

738 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