Solved

Transaction Log Fails to Shrink

Posted on 2009-04-13
2
509 Views
Last Modified: 2013-11-10
My buddy created a Shrink Transaction Log task for a Tran Log that grows to roughy 1.5 GB every night.  (A sizable job that must be logged runs every evening accounts for this increase.)  He'd like to reduce the log after the job runs, but his Shrink Database Task fails to shrink the log file at all.  The Maintenance Job Log file shows that the job runs successfully, but with no results.  What may be preventing the Tran Log from shrinking?
0
Comment
Question by:jdana
2 Comments
 
LVL 22

Accepted Solution

by:
dportas earned 250 total points
Comment Utility
Log will only remove unused space from the log.

Shrinking should never be scheduled to run on a regular basis. It should be run in exceptional circumstances only. Continual shrinking and growing is a huge waste of resources, causes unwanted fragmentation and in practice it saves you no disk space at all. Don't schedule the shrink task. Set the log to the size it needs to be and then leave it alone.
0
 

Author Closing Comment

by:jdana
Comment Utility
Sounds reasonable.  Thanks for the advice.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Suggested Solutions

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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
Via a live example, show how to shrink a transaction log file down to a reasonable size.

762 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

7 Experts available now in Live!

Get 1:1 Help Now