SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Need to increase log file size permanently.


Need to increase log file size permanently.

Author
Message
luiz.carvalho
luiz.carvalho
SSC Rookie
SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)

Group: General Forum Members
Points: 26 Visits: 185
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:

ALTER DATABASE [DATABASE_NAME] MODIFY FILE ( NAME = N'LOGICAL_LOG_NAME', SIZE = 1024000KB )

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?

Thks!
GilaMonster
GilaMonster
SSC Guru
SSC Guru (228K reputation)SSC Guru (228K reputation)SSC Guru (228K reputation)SSC Guru (228K reputation)SSC Guru (228K reputation)SSC Guru (228K reputation)SSC Guru (228K reputation)SSC Guru (228K reputation)

Group: General Forum Members
Points: 228153 Visits: 46339
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


Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search