Differential Backup

  • I do have one question regarding to differential backup.

    Suppose i am taking Full backup on sunday, and monday i am adding few rows in particular table and taking differntial backup.

    But how does SQL Server know which rows have to add using Differentail Backup?

  • SQL has a type of allocation page called the DCM, the differential change map. When you make a change to a table, the extent that the modified/new rows are in gets flagged in the appropriate DCM (the bit for that extent goes from 0 to 1).

    The differential backup processes all extents that are flagged 1 in the DCMs. It doesn't care about the rows, just the extents (64kb chunk). Full backups reset the DCM to all 0

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • SQL Server tracks changed data through Differential bitmap pages. Here is more information on it.

    Pradeep Adiga
    Blog: sqldbadiaries.com
    Twitter: @pradeepadiga

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply