Solved

simple versus full recovery model sql

Posted on 2015-01-27
1
88 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:
ScottPletcher 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

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.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

747 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

13 Experts available now in Live!

Get 1:1 Help Now