Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 - General
»
Initial log file size growth
Initial log file size growth
Rate Topic
Display Mode
Topic Options
Author
Message
jdbrown239
jdbrown239
Posted Monday, January 21, 2013 10:26 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Tuesday, June 11, 2013 9:09 PM
Points: 113,
Visits: 215
Hi!
Can someone tell me why the initial logfile size (set to 3gb) on a new log file grows as the log file grows? I thought the initial size would stay the same so when shrink the log file with truncate only it would reduce the the initial size of 3gb
Post #1409642
anthony.green
anthony.green
Posted Tuesday, January 22, 2013 1:31 AM
SSCertifiable
Group: General Forum Members
Last Login: Wednesday, June 05, 2013 2:40 AM
Points: 5,075,
Visits: 4,833
TRUNCATE ONLY has been removed in SQL 208 onwards due to the nature of the command and people miss using it and not understanding the consequences.
A log will grow as and when it needs to and to keep on top of it, transaction log management needs to be put in place.
Ensure that you are taking regular transaction log backups if your recovery model is Full or Bulk-Logged.
Managing Transaction Logs -
http://www.sqlservercentral.com/articles/Administration/64582/
Stairway to Transaction Log Management -
http://www.sqlservercentral.com/stairway/73776/
If transaction log management is in place, then the log must of needed to grow to that size to handle transactions going on.
The only way to release the space is to ensure the LOG_REUSE_WAIT_DESC in sys.databases is NOTHING then shrink the file using DBCC SHRINKFILE.
Shrinking files is not recommended, if the log grew to that size due to normal behavour, it is more than likely going to grow again.
If the growth was due to a one off processes and you know the log wont grow that big for another amount of time, you will be ok with a one off shrink. But dont make shrinking part of your daily tasks.
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1409857
george sibbald
george sibbald
Posted Tuesday, January 22, 2013 8:29 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 10:28 AM
Points: 5,314,
Visits: 11,305
if you mean the initial size as shown via the database properties in SSMS this nomenclature is misleading, it is in fact that ACTUAL size of the file, including any growths that haver occurred.
The exception to this is tempdb where initial size is just that, the size tempdb is created when SQL first starts up, not its ACTUAL size following file growths as activity ramps up.
---------------------------------------------------------------------
Post #1410065
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.