October 4, 2010 at 10:49 am
Hi all,
When the recovery model is changed from full recovery to simple recovery will the transaction be logged?
If yes where it will get logged.
October 4, 2010 at 11:04 am
http://msdn.microsoft.com/en-us/library/ms189275.aspx
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 4, 2010 at 11:12 am
I'm not sure it matters. Once you enter simple mode, you can't recover using the transaction log, and you can't take a log backup. The checkpoint might not write for a minute or so, but it doesn't matter. You can no longer recover to anything beyond your last full + log backups.
The transaction is logged, but since you're in simple mode, the first checkpoint clears it.
Is there a reason you are wondering?
October 4, 2010 at 11:47 am
All data modifications in SQL are always logged in the transaction log, regardless of recovery model. Primarily the difference between full and simple recovery is when the inactive portions of the log are marked as reusable.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
October 5, 2010 at 12:04 am
Each transaction will be loged into the transaction log for simple, bulk-loged or full recovery.
If simple recovery is set than transaction log truncated after each transaction commits and hence t-log can not be usable and keep the size of the log file smaller. But can't help for point in time recovery.
HTH
---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."
October 5, 2010 at 12:45 am
vinothr 33504 (10/4/2010)
Hi all,When the recovery model is changed from full recovery to simple recovery will the transaction be logged?
If yes where it will get logged.
refer these links Transaction Log Physical Architecture
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
October 5, 2010 at 1:34 am
free_mascot (10/5/2010)
If simple recovery is set than transaction log truncated after each transaction commits
It is not truncated on commit, it is truncated on checkpoint.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
October 5, 2010 at 4:21 pm
Gail is right. She made it crystal clear. That's the difference.
Thank You,
Best Regards,
SQLBuddy.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply