sparse column - how it works

  • I have read few articles on sparse columns.

    I found that when you store null values in sparse columns it wont need any storage space and when you store non null in any sparse column , it would need additional 4 byte

    Can anyone tell me WHY?

    May be something related to bitmap but want to know more .

    if anyone has the answer please let me know

  • Google "SQL Server Sparse Vector" to get the full details. The Sparse Vector tracks the storage of sparse columns. In the Sparse Vector (among other things) is two bytes that stores the column ID of any sparse column that isn't null. There is another two bytes that stores the offset to the end of the sparse data.

    Bob McC

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

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