Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Transaction Log Fails to Shrink

Posted on 2009-04-13
2
Medium Priority
?
517 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
[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 Comments
 
LVL 22

Accepted Solution

by:
dportas earned 1000 total points
ID: 24130967
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
ID: 31569563
Sounds reasonable.  Thanks for the advice.
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

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.
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

664 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