Solved

LDF Size is very big

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Truncate vs Delete 63 87
Need Counts 11 40
MS SQL Backup 24 70
how open sql server always on replica read_only 13 18
Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
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…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

705 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

18 Experts available now in Live!

Get 1:1 Help Now