Solved

Transaction log keeps growing in SQL Server 2005

Posted on 2008-10-21
3
350 Views
Last Modified: 2013-11-30
Hi all,

My SQL server 2005 .mdb contains 500MB and log .ldf contains 15GB. The log .ldf keeps growing everyday. How can i add a scedule to do the full backup and shrink the log file at the same time?

Kindly advise. Thank...
0
Comment
Question by:ian_khoo_sc
3 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
Comment Utility
You have 2 choices:
1. Since you are using Full Recovery Model you must back up the Transaction Log or
2. Change to Simple Recovery Model (Just understand that you will lose point in time recovery)

Good luck.
0
 

Author Comment

by:ian_khoo_sc
Comment Utility
Hi
Thank for your reply.

This's the step that I how to backup and shrink the database by manually.
1. Task -> Backup -> Backup Type : Tranaction Log. OK
2. Task -> Shrink -> Files -> File Type : Log. OK
 
I try to set the schedule to backup & shrink it. but it doesnt work. Any idea?
0
 
LVL 22

Accepted Solution

by:
dportas earned 500 total points
Comment Utility
Shrinking should NOT be scheduled. Shrinking should be needed for exceptional circumstances only. As acperkins said, you need to select the right recovery model and/or backup your log. If you do that you won't need to keep shrinking the log.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
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…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

744 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