Solved

How to reduce the size of SQL Server log files

Posted on 2014-07-30
2
171 Views
Last Modified: 2014-08-03
How to reduce the size of MS SQL Server log files. I have an example where the .mdf file is 168Mb, but the .ldf file is 3Gb. I also have another where the .ldf is 189Gb.
0
Comment
Question by:BishopsWaltham
[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 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 40228530
please read up this article first for a full understanding of why the log files are getting large, followed by how to keep them "small" in normal time and how to perform a one-shot shrinking:
http://www.experts-exchange.com/Database/MS-SQL-Server/A_11077-How-to-shrink-a-bloated-log-file.html

NOTE: do not perform regular (like daily) shrinks of the database or log files, this would just be waste of IO and slow down your db operations during the day
0
 
LVL 25

Expert Comment

by:Mohammed Khawaja
ID: 40228690
Best practice is to backup your DB and then the TLOGs and ensure to select the option "truncate at checkpoint" in your backup software.  This way logs will be flushed after successful backup.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
owncloud community capabilities 3 74
Software to shutdown Windows servers 4 65
ports for SCCM 1 91
WDS Configuration 17 172
If, like me, you have a lot of Dell servers in the estate you manage this article should save you a little time. When attempting to login to iDrac on any server I would be presented with two errors. The first reads "Do you want to run this applicati…
Determining the an SCCM package name from the Package ID
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 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