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 2008 Forums
 SQL Server Administration (2008)
 LDF file growing too big

Author  Topic 

cijojohn
Starting Member

3 Posts

Posted - 2009-12-07 : 12:57:32
I have sqlserver 2008.
My ldf file is growing too big
Now its 126 GB and my mdf file is only 328 MB.
I need to reduce the size of LDf file. How to do it?

If I’m shrinking the ldf file the size is coming to 16 GB.
And I gave the autogrowth option checked for ldf file and file growth given as 100 MB.
i opted maximum file size as 2000 GB.

Is this setting ok? Whenever new transaction happens the log file will grow beyond 16 GB right?
Any help is appreciated.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-07 : 13:26:40
Either change your recovery model to SIMPLE or start backing up your transaction log on a frequent basis. We backup our tlogs every 15 minutes.

This question is asked many times per week, so feel free to do some searches to understand what is going on.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

cijojohn
Starting Member

3 Posts

Posted - 2009-12-07 : 14:18:42
so you mean to say that after shrinking, change the recovery mode to Simple?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-07 : 14:32:20
No. Don't shrink it until you've either change to SIMPLE recovery model or started backing up the tlog on a regular basis.

What recovery model you use depends upon what recovery options you want. We must have point in time recovery option here, so we can not use SIMPLE in production. We do use SIMPLE in dev/test though.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2009-12-08 : 03:35:05
Please read through this - [url]http://www.sqlservercentral.com/articles/64582/[/url]

--
Gail Shaw
SQL Server MVP
Go to Top of Page
   

- Advertisement -