If I have an mssql varchar[1024] that is always empty in a table, how much actual bytes will be wasted in the db file on disk per row?
Please let me know the size for both:
- NULLs allowed storing ''
- NULLs not allowed storing ''
- NULLs allowed storing NULL
Since the max varchar size is > 2^1 and < 2^3 I would assume 2 bytes for the length. But perhaps there is some more overhead, for example if there is a reference that points to the actual data.