Solved

What is the use of .ldf file. What to do when the size is growing.

Posted on 2013-12-16
5
293 Views
Last Modified: 2013-12-25
I have an database mounted to E:\ drive. i.e i have mapped the .mdf and .ldf to e: drive.
But since the records are more, .ldf file size is growing.
My e: drive is of 78 GB but now major portion is covered by .ldf

Can we empty that so that the application works faster.
The screen shot is attached. the database name is ind13



What are all the possible solutions.
filesize.png
0
Comment
Question by:searchsanjaysharma
5 Comments
 
LVL 10

Expert Comment

by:HuaMinChen
ID: 39723004
0
 
LVL 17

Assisted Solution

by:Emmanuel Adebayo
Emmanuel Adebayo earned 250 total points
ID: 39723010
0
 
LVL 22

Expert Comment

by:Steve Wales
ID: 39723015
Have a read of the article I wrote on this topic: http://rdsrc.us/2nuhoK

(Link might look a little funny since I am posting from my mobile device but it should like to an article here on EE)

The LDF is your transaction log file and of you are running in full recovery mode there are certain steps you need to take in order to maintain the size of your log file.
0
 
LVL 10

Accepted Solution

by:
PadawanDBA earned 250 total points
ID: 39723121
sjwales' blog definitely covers how to do it.  As my little bit of demagoguery, I feel morally obligated to underscore an extremely important point of sjwales' post.  

in full recovery mode there are certain steps you need to take in order to maintain the size of your log file

Shrinking your log file (which you're more than likely going to have to do here, due to the size it has grown to) should always be a last resort and ***NEVER*** an automated job.  I could post tons of links about why, but Brent Ozar has already done that for us: http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/.

If your transaction log is as large as it is (which means they weren't being backed up), your business requirements are probably not so strict as they require point in time backup capabilities and you should be fine moving your database to simple recovery mode and take a daily full backup with some differentials sprinkled in along the way.
0
 

Author Closing Comment

by:searchsanjaysharma
ID: 39739718
tx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
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…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

914 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

18 Experts available now in Live!

Get 1:1 Help Now