Solved

maintenance task sql 2008 management studio

Posted on 2014-12-12
5
91 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 46

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

     When we have to pass multiple rows of data to SQL Server, the developers either have to send one row at a time or come up with other workarounds to meet requirements like using XML to pass data, which is complex and tedious to use. There is a …
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

861 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

25 Experts available now in Live!

Get 1:1 Help Now