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 2012 Forums
 SQL Server Administration (2012)
 Size of the ldf file increasing

Author  Topic 

winman
Starting Member

26 Posts

Posted - 2013-01-14 : 00:19:55
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

52326 Posts

Posted - 2013-01-14 : 00:47:00
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 - 2013-02-06 : 00:02:25
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

52326 Posts

Posted - 2013-02-06 : 01:46:44
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
   

- Advertisement -