SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Differential backup in 2005


Differential backup in 2005

Author
Message
Ambuj Mathur
Ambuj Mathur
Old Hand
Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)

Group: General Forum Members
Points: 320 Visits: 282
1. If I'm taking a Differential backup in MS SQL Server 2005, then what is the status of the Trans. log?
2. Does it still contain all the trans till last full backup or last differential backup?
3. Also, does the Trans log get empty or dos it still have any more trans after a specified backup has been taken?
Andras Belokosztolszki
Andras Belokosztolszki
SSCrazy Eights
SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)

Group: General Forum Members
Points: 8623 Visits: 1585
The transaction log backup is not affected by a full or a differential backup. It will still contain the log entries from the last log backup.

Regards,
Andras



Andras Belokosztolszki, MCPD, PhD
GoldenGate Software
Ambuj Mathur
Ambuj Mathur
Old Hand
Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)

Group: General Forum Members
Points: 320 Visits: 282
Thanks Andras! Just wanted to be doubley sure before going-ahead on a critical DB.
So, this means that trans log is only affected when there is any trans backup taken and not when Full or Full Differential backup is taken...right?
Andras Belokosztolszki
Andras Belokosztolszki
SSCrazy Eights
SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)SSCrazy Eights (8.6K reputation)

Group: General Forum Members
Points: 8623 Visits: 1585
Ambuj Mathur (4/7/2008)
Thanks Andras! Just wanted to be doubley sure before going-ahead on a critical DB.
So, this means that trans log is only affected when there is any trans backup taken and not when Full or Full Differential backup is taken...right?

Yes, this is correct. If you want to be sure, and not just listen to somebody on the forum Smile), have a look at your backups in msdb.dbo.backupset and look at the first_lsn and last_lsn entries for the log backup. Full and differential backups do not affect the chain in the log backups (chain: the last_lsn is the same as the first_lsn of the next log backup).

Regards,
Andras



Andras Belokosztolszki, MCPD, PhD
GoldenGate Software
Peter Schofield
Peter Schofield
SSC Eights!
SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)SSC Eights! (958 reputation)

Group: General Forum Members
Points: 958 Visits: 623
Andreas is (of course) correct - both full and differential backups do not affect the transaction log in anyway. I'd personally suggest that you try it yourself on a test/development system - I find that seeing and doing something yourself helps the learning process.



Ambuj Mathur
Ambuj Mathur
Old Hand
Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)Old Hand (320 reputation)

Group: General Forum Members
Points: 320 Visits: 282
Sure Andras/Peter,
I will be testing this before making it live. I will be working on the Dev env. first. Thank for the confirmation!
SQL Swerver
SQL Swerver
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1386 Visits: 536
In that case, what happens if you restore a TranLog backup where the Time range of the Transaction Logs 'overlap' a full or differential backup? What happens to the changes recorded by the restored Transaction Log which are 'before' the time of the Full or Differential Backup?
thecosmictrickster@gmail.com
thecosmictrickster@gmail.com
SSCertifiable
SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)

Group: General Forum Members
Points: 6002 Visits: 940
They'll get applied. When restoring a database, you generally start with the latest full + differential then move onto the transaction logs. However, it is entirely possible to start your restore process from an older full backup then apply all the transaction logs to roll it forward. Slow way of doing things, but I have read stories of where it had to be done (due to more recent full backups being corrupted - fortunately they had an unbroken chain of log backups from that full backup up to current day).

Your full backup is the state of a database at a point in time (the time when the backup finished). The transaction log backups are a record of what happened to the database over a period of time.



Scott Duncan

MARCUS. Why dost thou laugh? It fits not with this hour.
TITUS. Why, I have not another tear to shed;
--Titus Andronicus, William Shakespeare

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search