Solved

Transaction log keeps growing in SQL Server 2005

Posted on 2008-10-21
3
351 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
ID: 22772679
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
ID: 22773006
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
ID: 22773775
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Query 34 80
SQL Server Deadlocks 12 47
Sum Totals based on current date compared to fiscal year to get YTD totals 3 19
email about the whoisactive result 7 21
In this article I will describe the Backup & Restore 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.
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

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

20 Experts available now in Live!

Get 1:1 Help Now