on-internet
← Community

Why and when should I use SPARSE COLUMN?

Stack Overflow ·

SQL Server 2008's new feature "SPARSE COLUMN" doesn't take any space if the column value is 0 (citation needed) or NULL, but when there is a value it takes 4 times the space a regular (non sparse) column holds. Why should I go for that at the time of database design? And if I should use that, in what situation will that be? Also how does no space get reserved when a column is defined as sparse, what is the internal implementation?

Comments

Sign in or sign up to comment and upvote.

No comments yet.