Solved

LDF Size is very big

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sql query to calculate avaerage 21 41
TSQL - How to declare table name 26 31
Sql Query 6 68
SQL Count issue 24 17
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

823 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