Re: Can't shrink log file
- From: "tshad" <toms@xxxxxxxx>
- Date: Fri, 15 May 2009 07:45:36 -0700
"Aaron Bertrand [SQL Server MVP]" <ten.xoc@xxxxxxxxxxxxxx> wrote in message
news:C6309378.18E10%ten.xoc@xxxxxxxxxxxxxxxxx
I think I understand the models a little better now, reading the suggestedWe are developing software for various companies and have multiple
databases
(which are development not production databases) that we back up fully
every
night. So I am not sure what backing up the Log would buy me.
Well say you backup at 10 PM. Then you do normal activity for 23 hours.
Then you have a corruption, or delete data by mistake, or some other event
occurs which. You have lost 23 hours of work, or will have to do a very
tedious and expensive log recovery operation, because your only other
option
at that point is to revert to the backup from the night before. If you
are
in full recovery and do log backups throughout the day, you can restore
last
night's backup and apply the logs up to whatever point in time did NOT
contain the screw-up.
If reverting to the previous night's backup is okay, then the full
recovery
model is not for you.
One question though. If I use a Simple Recovery model and do a full
Recovery - are all the transactions from the log in the database?
I'm not sure I quite understand the question. Do you mean a full backup
while in simple recovery? And what transactions in the log do you expect
not to be in the database? Or did you mean in the backup? Can you
re-state
your question and read it over a couple of times to be sure you have the
right words in the right places?
links.
But just want to clear up a couple of questions.
Simple Recovery writes to the Transaction Log, but the transaction log can't
be used for recovery.
What is the Tran log used for then?
During a transaction, the transaction log is used in case of rollback.
If the transaction log is reused - I assume that the transaction log will
not overwrite open transactions until these transactions are either
committed or rolled back.
A checkpoint just means that the pages in the cache are moved to the logs.
The dirty pages are the transactions still in the cache and not yet actually
moved to the database files. At which point are they not considered
"dirty". When they get moved to the database or when they are moved to the
Tran Log?
Thanks,
Tom
.
- Follow-Ups:
- Re: Can't shrink log file
- From: Hugo Kornelis
- Re: Can't shrink log file
- From: Aaron Bertrand [SQL Server MVP]
- Re: Can't shrink log file
- References:
- Can't shrink log file
- From: tshad
- Re: Can't shrink log file
- From: Russell Fields
- Re: Can't shrink log file
- From: tshad
- Re: Can't shrink log file
- From: Russell Fields
- Re: Can't shrink log file
- From: tshad
- Re: Can't shrink log file
- From: Aaron Bertrand [SQL Server MVP]
- Re: Can't shrink log file
- From: tshad
- Re: Can't shrink log file
- From: Aaron Bertrand [SQL Server MVP]
- Can't shrink log file
- Prev by Date: Re: how quick a transaction will be committed to DB
- Next by Date: nike clothing,nike shoes,online store,http://www.maidi2008.net air Jordan Shoes,Nike Air Jordans, Air Force Ones,Retro Air Jordan, Bape Hoodies,Bape shoes-Tencent Traveler|Jordan Shoes,Nike Air Jordans, Air Force Ones,Retro Air Jordan, Bape Hood
- Previous by thread: Re: Can't shrink log file
- Next by thread: Re: Can't shrink log file
- Index(es):
Relevant Pages
|