Solved

What are the LDF and MDF files and how can I stop the LDF from growing too large

Posted on 2003-12-02
5
1,107 Views
Last Modified: 2012-06-27
What are the LDF and MDF files and how can I stop the LDF file from growing too large
0
Comment
Question by:running32
  • 3
5 Comments
 
LVL 4

Expert Comment

by:mikosha
ID: 9858964
MDF is primary data file.
LDF is a log file.
So to stop your ldf file to grow it's easy : just run log  backup or full database backup .Other option is to truncate a log.
0
 
LVL 18

Accepted Solution

by:
ShogunWade earned 500 total points
ID: 9859404
You can also (depending on the backup strategy planned) set the recovery mode to "Simple"  this will keep the log file to a minimum. but will provent you from doing log (intremental) backups as you do not have a full log.
0
 
LVL 7

Expert Comment

by:pegasys
ID: 9879807
You can 'shrink' the database from time to time via the Enterprise manager. Yet, I wouldnt advise you stopping the logging. It can be a lifesaver when all hell breaks loose in a ghastly crash!!

0
 
LVL 18

Expert Comment

by:ShogunWade
ID: 9881937
"Yet, I wouldnt advise you stopping the logging"

I dont agree with this generalization.   It depends entirely on the nature of the database and the planned backup strategy.

0
 
LVL 18

Expert Comment

by:ShogunWade
ID: 10021173
Has your question been answered?   If so could you please close it.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

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…
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 retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

813 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

14 Experts available now in Live!

Get 1:1 Help Now