Solved

How do I control ldf file growth in SQL Server 2000

Posted on 2011-02-22
6
259 Views
Last Modified: 2012-05-11
I have a customer with a SQL Server 2000 database that doesn't get much maintenence.  Every once in awhile the ldf file grows to big for the disk space and locks up the server.  Is there a way to automatically shrink the ldf file or minimize the file growth?  This is a daily backup database populated with DTS every night for easy access to yesterday's data if ever necessary.  It is not a production db.  
0
Comment
Question by:woodwyn
  • 3
  • 2
6 Comments
 
LVL 32

Expert Comment

by:ewangoya
Comment Utility

Change the recovery mode to Simple and schedule regular backup of the log
This should keep it at a reasonable size
0
 
LVL 75

Expert Comment

by:Anthony Perkins
Comment Utility
>>Change the recovery mode to Simple and schedule regular backup of the log<<
I suspect you mean:
Change the recovery mode to Simple or schedule regular backup of the log

You cannot do both.
0
 

Author Comment

by:woodwyn
Comment Utility
Any recommendations on if either solution is easier to implement and/or more reliable as a solution to our problem?
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 32

Expert Comment

by:ewangoya
Comment Utility

Either way should be fine
0
 

Author Comment

by:woodwyn
Comment Utility
How does one set recovery mode to simple?
0
 
LVL 32

Accepted Solution

by:
ewangoya earned 500 total points
Comment Utility

run this command

ALTER DATABASE [database name]
SET RECOVERY [SIMPLE]
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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…
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.

771 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