Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Need to increase log file size permanently. Expand / Collapse
Posted Wednesday, February 27, 2013 11:12 AM


Group: General Forum Members
Last Login: Tuesday, March 22, 2016 8:02 AM
Points: 16, Visits: 182
Hello Everybody!

I have a 130Gb database. It was created 3 years ago with the default log file size (3mb). What I´m trying do make is to increase this log file size to a regular size accordding to the mdf file. My ideia is to alter the log file size to a minimum of 1Gb size.

Here´s what I have, running in a SQL 2005 maintainance plan perfectly:

Database in full recovery model
Full backup every day, 7AM
Log backup every hour, from 9AM to 11:59PM

I´ve already tried to following command:


Ok, this command really alters the log size, but after some hours it goes back to the old size!!!!

I really need to increase this log file size permanently. dbcc sqlperf (logspace) reports log full many times! My idea is to increase the log space, so sql server would have more space avaiable to work with.

How can I alter the initial size of the log file and it permanently keeps this new value?

Post #1424659
Posted Wednesday, February 27, 2013 11:24 AM



Group: General Forum Members
Last Login: Yesterday @ 10:06 PM
Points: 45,436, Visits: 43,788
You either have auto_shrink on or you have a scheduled shrink job. Get rid of the shrink and the file will stay at the specified size (or will grow if necessary)

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1424666
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse