Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Huge size of log file???

Author  Topic 

Joozh
Posting Yak Master

145 Posts

Posted - 2005-04-18 : 04:15:31
The log file of one of my database has gone upto 60GB ??? I have tried to shrink the database but the log file size remains the same.

Any clues how I can handle this? If I delete the lof file will it cause any problem?
Will appreciate help.

Many TIA

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2005-04-18 : 04:44:00
do you need point in time recovery?

if no,
a. backup the log with truncate_only
b. shrink the file

if yes,
a. backup the log (make sure you have enough space)
b. shrink the file

then,

create maintenance jobs to maintain the log size to manageable level





--------------------
keeping it simple...
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2005-04-18 : 08:32:51
If you don't need point in time recovery, just set the database recovery mode to simple and shrink the file. Do a full backup after doing this.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

Joozh
Posting Yak Master

145 Posts

Posted - 2005-04-19 : 00:35:45
Thanks for the help.

I do not ned point in time recovery but do not know how to go about your suggestion i.e. How to set the database recovery mode to simple. Via query Analyzer by running some command????

Shrinking is easy = Just right click on the database, and from the options select the Shrink option. Right?
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2005-04-19 : 01:29:41
from enterprise manager, right click your database, select properties, go to options tab and select 'simple' recovery mode.



-ec
Go to Top of Page
   

- Advertisement -