Solved

.TRN files will not delete

Posted on 2006-06-13
3
1,396 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
Comment Utility
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
Comment Utility
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]
Comment Utility
>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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
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 videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

744 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

8 Experts available now in Live!

Get 1:1 Help Now