Solved

LDF Size is very big

Posted on 2004-04-09
4
272 Views
Last Modified: 2012-05-24
I have an ms sql database, database name is  allen
allen.MBF is 3.170.880 KB
allen.LDF is 3.184.640 KB  (more than 3 GB)

why ldf file is to big? and how can I make is small?
 
0
Comment
Question by:zedlin
[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
4 Comments
 
LVL 34

Accepted Solution

by:
arbert earned 125 total points
ID: 10795665
Pretty common question--if you schedule backups this won't happen.  Check out this previous thread:

http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_20937477.html?query=log+file+won%27t+shrink&searchType=topic


Brett
0
 
LVL 6

Expert Comment

by:graf0
ID: 11338814
If you don't need transaction log backups (in most cases of a simple, local databases you don't), just set your database to simple recovery model. Then use the Enterprise Manager to shrink the logfile. You may need to do it more than once to get it to the desired size (usualy 10-20 MB should be enough for a database of this size).
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

622 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