﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Full &amp; Differential backups / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 02:21:51 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Full &amp; Differential backups</title><link>http://www.sqlservercentral.com/Forums/Topic1383666-391-1.aspx</link><description>Because I use custom maintenance scripts, I maintain a log of "actions done per database".  Rebuild some indexes?  Log it.  Run a backup?  Log it.  DBCC CHECKDB?  Log it.  And so on.  Gives a one-stop table where all of a database's history is kept.  Can get a full history for any database, or the whole server, without having to query dozens of system views.Same database (DBA is the name of the database) has a DDL log in it for all object create/modify/drop commands.  So it becomes easy to see things like, "What's the best backup to use if I want to restore to before that $%&amp;*!@# moron dropped those tables?"</description><pubDate>Mon, 12 Nov 2012 08:03:53 GMT</pubDate><dc:creator>GSquared</dc:creator></item><item><title>RE: Full &amp; Differential backups</title><link>http://www.sqlservercentral.com/Forums/Topic1383666-391-1.aspx</link><description>Yup... I did entertain this idea of custom logging before but I thought I'd check with you guys in case I'm duplicating unnecessary metadata. But it does make sense and it will give me more control.</description><pubDate>Mon, 12 Nov 2012 07:54:46 GMT</pubDate><dc:creator>Abu Dina</dc:creator></item><item><title>RE: Full &amp; Differential backups</title><link>http://www.sqlservercentral.com/Forums/Topic1383666-391-1.aspx</link><description>I build separate logging into that kind of script.  It checks its own log to see if a database has had a full backup in the expected timeframe.  If not, it runs one, if so, it does a Diff.</description><pubDate>Mon, 12 Nov 2012 07:00:19 GMT</pubDate><dc:creator>GSquared</dc:creator></item><item><title>RE: Full &amp; Differential backups</title><link>http://www.sqlservercentral.com/Forums/Topic1383666-391-1.aspx</link><description>Hmmmm.... that's what I thought so thanks for confirming.The reason I'm asking is because I have a job which performs daily differential backups and another which does fortnightly full backups.So consider the following scenario:DAY 1 - FULL BackupsDay 2 - Differential BackupsDAY 3 - NEW DATABASE addedDAY 3 - Differential Backups (will fail the job because there isn't a full backup for the new database).So I thought I could add a check in my sproc to look for entries in the backupset table where the type is D but this won't work where a database is created then restored using a full backup from another database.I know the differential won't fail but it would be confusing to find a differential backup in the backup folder but no full backup.am I making sense?</description><pubDate>Mon, 12 Nov 2012 06:50:04 GMT</pubDate><dc:creator>Abu Dina</dc:creator></item><item><title>RE: Full &amp; Differential backups</title><link>http://www.sqlservercentral.com/Forums/Topic1383666-391-1.aspx</link><description>It's doing a Diff on the one you restored.  Obviously, that database has a restorable Full backup, since you just used it to restore the database, so it can do a Diff on it.</description><pubDate>Mon, 12 Nov 2012 06:43:29 GMT</pubDate><dc:creator>GSquared</dc:creator></item><item><title>Full &amp; Differential backups</title><link>http://www.sqlservercentral.com/Forums/Topic1383666-391-1.aspx</link><description>I would really appreciate it if someone could help understand the following.I have a stored procedure to backup all user databases on an instance.Example (D for Differential, F for FULL and L for Log[code="sql"]exec [sp_QB_Backup] @BackupType = 'D', @BackupFolderPath = '\\FileStoreBackup\'[/code]I did the following the test:1) Created a blank database called Test2) Ran the above (failed on backing up Test database - fair enough as there isn't a full backup3) Queried backupset table, no entries for Test DB yet.4) Restored another database backup on top of the Test DB, rechecked backupset table, still no entry for Test DB.5) Ran the differential backups again and it worked creating one.But I never did a full backup of the Test DB so how can it do a differential? Is it because I restored from a FULL backup that SQL is using to work out the differential for the Test DB?</description><pubDate>Mon, 12 Nov 2012 06:36:43 GMT</pubDate><dc:creator>Abu Dina</dc:creator></item></channel></rss>