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,104 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
"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
Comment Utility
Has your question been answered?   If so could you please close it.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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 …
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
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.

772 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

10 Experts available now in Live!

Get 1:1 Help Now