SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 SQL Server Administration (2012)
 Size of the ldf file increasing
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

winman
Starting Member

26 Posts

Posted - 01/14/2013 :  00:19:55  Show Profile  Reply with Quote
I have some sql server database for which recovery model is set to full.Now for some databases the ldf size has become large.I tried taking log backup regularly,but i didn’t find decrease in physical size of ldf. I followed what stan20 has told in this link http://social.msdn.microsoft.com/Forums/en-US/databasedesign/thread/704bcfbc-9251-4f4e-9a80-04bc7fe9ae78 But it only reduced logical file size. So how i can mange size of ldf file?

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 01/14/2013 :  00:47:00  Show Profile  Reply with Quote
Even after taking backups if ldfs are growing then that means you're having some uncomitted open transactions which is highly intensive and filling up log space. Check for active transactions and see if you can execute them as batches rather than as a whole bunch

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

srimami
Posting Yak Master

160 Posts

Posted - 02/06/2013 :  00:02:25  Show Profile  Reply with Quote
Please change the recovery model set to Simple and shrink log files using DBCC Shrinkfile. Take regular backup's of database and perform a shrink files whenever the ldf file gorws.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 02/06/2013 :  01:46:44  Show Profile  Reply with Quote
quote:
Originally posted by srimami

Please change the recovery model set to Simple and shrink log files using DBCC Shrinkfile. Take regular backup's of database and perform a shrink files whenever the ldf file gorws.



Need to analyse business impact before changing the recovery model like whether they require point in time recovery. Remember making recovery model as simple will truncate log after each checkpoint so point in time recovery will not possible once you make recovery model simple.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000