October 27, 2016 at 10:29 am
Good morning Experts,
In the Simple recovery model, are the tlogs truncated on checkpoint or physically shrinked? Does Log truncation mean physical shrinking of log file?
October 27, 2016 at 10:34 am
coolchaitu (10/27/2016)
Good morning Experts,In the Simple recovery model, are the tlogs truncated on checkpoint or physically shrinked? Does Log truncation mean physical shrinking of log file?
The log entries are marked as available for reuse when the checkpoint fires. Space is not yielded back to the operating system.
Shrinking is a different operation. You generally don't want to shrink your log files, but like so many other generalities, there are exceptions. In short, it depends.
October 27, 2016 at 11:46 am
The question you ask is one of "those" questions with a whole lot of tentacles, especially if your in need of doing something in particular using that recovery model. I strongly recommend that you ask Yabingooglehoo about the SIMPLE Recovery Model and learn more about it rather than just taking an answer that covers only a tiny facet of the Recovery Model.
Seriously, the data you save may be your own. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
October 28, 2016 at 1:07 am
As Jeff said, I would get a coffee and enjoy reading this:
https://technet.microsoft.com/en-us/library/2009.02.logging.aspx#id0060077
October 28, 2016 at 1:43 am
BLOB EATER (10/28/2016)
As Jeff said, I would get a coffee and enjoy reading this:https://technet.microsoft.com/en-us/library/2009.02.logging.aspx#id0060077
I would also get several coffees and a sandwich, and read Tony Davis & Gail Shaw on Transaction Log Management: https://www.red-gate.com/library/sql-server-transaction-log-management. (Free PDF from Redgate, and available as a physical / kindle book from Amazon...)
Thomas Rushton
blog: https://thelonedba.wordpress.com
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply