Solved

How do I control or limit log file growing in SQL Server 2000 ?

Posted on 2007-11-28
2
615 Views
Last Modified: 2008-02-01
My Log files occupied 20 GB. I could not shrink that file. so I detached the database and attached again.
It was just few days back.  size of the log file become just 570 kb.  Now it reaches 5,000,000 kb again.
How can I limit the growing?
0
Comment
Question by:peterdevadoss
2 Comments
 
LVL 11

Accepted Solution

by:
bsharath earned 50 total points
ID: 20364982
you can restrict it graphically using SSMS or Enterprise Manager.
Right-click on the database name and select Properties.

Note, however, if you limit the size and it fills up, ALL modification
activity will instantly cease on that database.

You MUST backup the tlog in some form or another to flush committed
transactions from the log (or put the database in simple recovery mode).


http://www.mcse.ms/message2593655.html
0
 
LVL 18

Expert Comment

by:Yveau
ID: 20365106
Scripting is always better:
(of course change names and sizes to your own needs)

Hope this helps ...

USE [master]
GO
ALTER DATABASE [Yveau] 
MODIFY FILE ( NAME = N'Yveau_log', MAXSIZE = 102400KB )
GO
 
--

Open in new window

0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

777 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