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

  • SEARCH
  • Home
  • 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 8812185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:32:54+00:00 2026-06-14T03:32:54+00:00

I have a table with a column of type varbinary(max) . I have some

  • 0

I have a table with a column of type varbinary(max). I have some rows that have data in that column while others do not; they are null.

My question is: does the column with NULL also occupy 2 bytes per row? I am using SQL Server 2008 R2.

Thank you

  • 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-06-14T03:32:55+00:00Added an answer on June 14, 2026 at 3:32 am

    This article http://aboutsqlserver.com/2010/08/11/how-sql-server-stores-data-extents-data-pages-data-row-for-in-row-data/ is what you need to read.

    There is no data to store, but the metadata will occupy

    • 1 bit in the NULL bitmap (each 8 nullable columns = 1 byte)
    • 2 bytes in the variable offset array. Unless it is the last column or all columns prior are NULL columns
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table with a 'Wav' column that is of type 'VARBINARY(max)' (storing
i have one data column in db it's contains varbinary(max) Some of records will
i have a table that has following column Type -------- type 1 type 2
I have some table DOCUMENTS that have a column TYPE_ID and a table named
I have a table RDCAlerts with the following data in a column of type
In Oracle, I have a table with a column of data type NUMBER. I
I have some code that allows users to upload file attachments into a varbinary(max)
I have a table column that uses an enum type. I wish to update
I have a table with PostalCode Column that type's is Char(10) , I use
I have a table cell of type nvarchar(max) that typically looks like this: A03

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.