Solved

simple versus full recovery model sql

Posted on 2015-01-27
1
89 Views
Last Modified: 2015-01-27
I was having a problem with transaction log files growing too large until I got the transaction log files
backing up with a database in the full recovery model.

Question....
if a database is set to a simple recovery model... will the transaction logs automatically be truncated without them being backed up?

how does a simple recovery model utilize the transaction logs... are they used at all?

also, shouldn't system databases be set to a simple recovery model in most cases?  I have some with the full recovery model selected
0
Comment
Question by:jamesmetcalf74
1 Comment
 
LVL 69

Accepted Solution

by:
Scott Pletcher earned 500 total points
ID: 40573984
>> if a database is set to a simple recovery model... will the transaction logs automatically be truncated without them being backed up? <<

Yes.  Logs will be truncated at every checkpoint (every few mins).  But not shrunk: you must explicitly shrink files in SQL Server, it never does that automatically (unless you set autoshrink on, which you should never do).


>> how does a simple recovery model utilize the transaction logs... are they used at all? <<

Yes.  SQL always requires a log file to provide the ACID properties of a transaction, that is, to ensure "all or nothing" transactions, which includes rollback capabilities.


>> also, shouldn't system databases be set to a simple recovery model in most cases? <<

Yes.  Master, model and tempdb should always be simple.  Msdb can be simple or full, whichever you prefer.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

863 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

23 Experts available now in Live!

Get 1:1 Help Now