Solved

simple versus full recovery model sql

Posted on 2015-01-27
1
90 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server Designer 19 39
migrate a SQL 2008 to 2016, 2 26
T-SQL: Do I need CLUSTERED here? 13 41
How to create a unique rule restriction on a table for two fields 16 78
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
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.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

786 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