Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 519213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:01:04+00:00 2026-05-13T08:01:04+00:00

I’m preparing to the SQL Server exam (70-431). I have the book from Sybex

  • 0

I’m preparing to the SQL Server exam (70-431). I have the book from Sybex “SQL Server 2005 – Implementation and Maintenance”. I’m little confused about estimating a size of a table.

In the 2nd chapter there is explained how to do this:

  1. Count the row size from the formula: Row_Size = Fixed_Data_Size + Variable_Data_Size + Null_Bitmap + Row_Header.
    • Fixed_Data_Size is a sum of all sizes of fixed length columns (simple sum)
    • Variable_Data_Size = 2 + (num_variable_columns × 2) + max_varchar_size, num_variable_columns – number of columnt with variable length, max_varchar_size – maximum size of varchar column
    • null_bitmap = 2 + ((number of columns + 7) ÷ 8) (rounded down)
    • Row_header always equals 4.
  2. Calculating rows per page from the formula: Rows_Per_Page = 8096 ÷ (Row_Size + 2) (rounded down)
  3. Estimating the number of rows in the table. Let’s say that table has 1,000 rows.
  4. Calculating the number of pages needed: No_Of_Pages = 1,000 / Rows_Per_Page (rounded up)
  5. Total size: Total_Size = No_Of_Pages * 8,192, where 8,192 is the size of one page.

So everything is perfectly clear for me. I made one example and checked with the answers in the book that my calculations are correct. But there is one question which confuses me.

The question is: we have a table with the following schema:

Name       Datatype
-------------------
ID         Int
VendorID   Int
BalanceDue Money
DateDue    Datetime

It is expected that in this table there will be about 5,000 rows. Question (literaly): “How much space will the Receivables table take?”

So my answer is simple:

null_bitmap = 2 + ((4+7) / 8) = 3.375 = 3 (rounded)
fixed_datasize =  4 + 4 + 8 + 8 = 24
variable_datasize = 0
row_header = 4 (always)

row_size = 3 + 24 + 0 + 4 = 31

But in the answer they omit row_header and they don’t add 4. Is it a mistake in the book or row_header is added only in some cases (which are not mentioned in the book)? I was thinking that maybe row_header is added only if there are variable-length fields in the table, but there is another exercise in which there are not variable-length fields and row_header is added. I would appreciate if someone explains me that. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T08:01:05+00:00Added an answer on May 13, 2026 at 8:01 am

    Inside the Storage Engine: Anatomy of a record says all records have a record header:

    The record structure is as follows:

    • record header
      • 4 bytes long
      • two bytes of record metadata (record type)
      • two bytes pointing forward in the record to the NULL bitmap
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.