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,111 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
[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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sorting a SQL script 5 41
Does INTERSECT return opposite from FULL OUTER JOIN? 4 41
Report 8 27
SqlServer amend PK column 5 11
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…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

739 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