Solved

What happens if the Log file properties Automatically grow box is unchecked and the log file runs out of space?

Posted on 2007-11-19
5
307 Views
Last Modified: 2008-02-01
Hi,
We just recently found that a database which only needs a simple recovery model had been using a full recovery model and we shrank the log file from 6Gig to 11MB.  Very good news, and useful to know.  A couple of other questions - though - so I don't become overconfident.
1) what information does the log file contain for a simple recovery model that is used for a database that is backed up every night?  A process each day "refreshes" the records in the database - deletes all today and imports and adds all of the next day.  I would assume that this daily activity adds info to the log file - doesn't it?  
2) we used the DBCC Shrinkfile command to shrink the size of the log file to 10MB.  That was not scientific, just a guess - and then we unchecked the box that says "Automatically Grow File" - was that wise or not?  What is the potential impact of having that box unchecked?  Could that cause our daily "refresh" to fail?  Would it just stop importing rows and we'd never know the difference?

thank you.
0
Comment
Question by:wendelina
  • 2
  • 2
5 Comments
 
LVL 16

Expert Comment

by:SQL_SERVER_DBA
Comment Utility
you probably want to let it grow larger than 10 mb, some action queries can ecompass alot of growth, simple recovery with shrink the log for you if need be.
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
>1) what information does the log file contain for a simple recovery model
the same as for full recovery model. the "only" difference is that in simply recovery mode, the log entries are automatically marked as "overwritable". in full recovery mode, a log entry will only made overwritable upon transaction log backup (or full backup)

>I would assume that this daily activity adds info to the log file - doesn't it?  
yes

>2) we used the DBCC Shrinkfile command to shrink the size of the log file to 10MB.  That was not scientific,
indeed, but not important. the log file will grow eventually grow during that daily import, but once it has grown to the size needed, it will not grow again (of course assuming that the database remains in simple recovery mode).

> Could that cause our daily "refresh" to fail?  
it is possible, if the disk system, upon request of growing the file, could not fullfil that request fast enough.
however, that can only happen if the file is already quite large, the disk system too busy with other requests etc ...


0
 

Author Comment

by:wendelina
Comment Utility
And would that be accomplished using the auto-shrink setting in the options tab?
0
 

Author Comment

by:wendelina
Comment Utility
I guess simply put - should I REcheck that option to Automatically Grow the Log file - to avoid any future "gotchas"?  I certainly don't want to swing from one extreme (huge log that grows forever) to the other (tiny log that isn't large enough to sustain the daily log activity).
thanks
0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
Comment Utility
>And would that be accomplished using the auto-shrink setting in the options tab?
leave that setting out. you should "never" use that, as it usually means less performance.



>should I REcheck that option to Automatically Grow the Log file
you should keep that checked on the log file... because if ever the log file cannot grow, any updateing change would be failing
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now