Solved

LDF Size is very big

Posted on 2004-04-09
4
270 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
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Backup Question 2 30
RESTORE A BACKUP IN SQL 2012 from SQL 2008 9 65
What is the best way to use power bi and ssrs 3 26
RAISERROR WITH NOWAIT 2 17
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
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.

837 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