Solved

.TRN files will not delete

Posted on 2006-06-13
3
1,420 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
[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
  • 2
3 Comments
 
LVL 143

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 143

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

 Database Backup and Recovery Best Practices

Join Percona’s, Architect, Manjot Singh as he presents Database Backup and Recovery Best Practices (with a Focus on MySQL) on Thursday, July 27, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7). In the case of a failure, do you know how long it will take to restore your database?

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…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
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
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

623 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