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,108 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Pivot with row total 5 27
CDC and AOG on MS SQL 2012 13 23
Run an action on recently added records to a table 13 61
Parse this column 6 27
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…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

860 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