Solved

.TRN files will not delete

Posted on 2006-06-13
3
1,399 Views
Last Modified: 2008-09-30
I am using SQL 2000 and using the database maintenance plan to delete both the .bak and .trn files.

The scheduler deletes the .bak files just fine but NOT the .trn files.  The .trn files keep stacking up which I have to manually delete via Windows Explorer.

Any ideas?
0
Comment
Question by:mcnuttlaw
  • 2
3 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 350 total points
ID: 16895645
this happens if you have the database maintenance plan to do a transaction log backup on ALL databases, ie on at least 1 database that is NOT in recovery model = full.
it's a "bug" in SQL Server that it does not delete ANY .trn file as soon as there is a problem in ANY of the transaction log backups :-(

The solution:
Create 1 maintenance plan for the full backup (possibly all databases)
Create 1 maintenance plan for the transaction backup (only the databases in full recovery mode)
0
 
LVL 2

Author Comment

by:mcnuttlaw
ID: 16907825
okay angelIII,

It seemed to work.  I have one vendor-created database (for spam detection) that is set to simple.  Once I took that db off the transaction maintenance, all is well and the .trn files get deleted right on schedule.

Is there a problem in simple databases not having their transactions backed up?
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 16908797
>Is there a problem in simple databases not having their transactions backed up?
the only functionality you loose is that you cannot restore to a point in time.
with software like you described, the restore process is usually faster by reinstallating the software completely and configuring the few settings and it's gone.

technically, you cannot backup (ie it makes no sense) the transaction log of a database that is in simple recovery mode.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

864 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

21 Experts available now in Live!

Get 1:1 Help Now