I have a table with a varbinary (max) column, I try to assign a zero binary buffer to this column, but instead of getting a value of zero length in the table, I get 8000 bytes a value filled with zeros:

* the dataSize column in the shown query was added with using DATALENGHT (data) ("SELECT _index, dataSize = DATALENGHT (data) , FROM data ....") and shows the actual size of the table value
Where does the empty 8,000 byte buffer come from? is this some kind of default behavior?
source
share