I was poking around SSMS and noticed the "size" of my INT columns were 4 bytes (expected) but I was a bit shocked to see my BIT columns were a whole byte.
Did I misunderstand what I was looking at?
|
I was poking around SSMS and noticed the "size" of my Did I misunderstand what I was looking at?
| |||||
feedback
|
|
How many bit columns do you have defined in the table? I found this on MSDN, it says 8 or less bit columns are stored as one byte. | |||
|
feedback
|
|
Yes. If you only have one There is also a 1 bit per column storage need for the | ||||
|
feedback
|
|
So the first field costs one byte, but the next seven are free! | ||||
|
feedback
|