How much free space in a page of SQL Server 2005?

  • I got a number from a training class that a page has 8092 bytes free space.

    Then, I looked up MS web site it said a page has 8060 bytes (8KB).

    96 bytes of it is system header, so shouldn't the free space be 8060-96 = 7964bytes?

    And where 8092 free space comes from?

    I'm really confused, so any inputs would be greatly appreciated. Thanks.

  • The total size of a page is 8192 bytes. 8kB = 8*1024 bytes = 8192 bytes. So the number given in the course was slightly off.

    8060 is the max size of a row. Hence the maximum amount of data that can fit onto a page once the page header, row header and slot index are in place.

    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
  • Okay, I see. Thanks a lot for the explanation Gail.

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

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