Solved

maintenance task sql 2008 management studio

Posted on 2014-12-12
5
92 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 47

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server Question 5 36
SSIS I need to get the most old file from a folder in the SSIS package. 3 23
Help Required 2 29
Query Syntax 17 32
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

785 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