Currently, sql server errors out when passing a null value for a varbinary column.
The problem is exactly due to this:
https://stackoverflow.com/questions/29254690/why-does-dbnull-value-require-a-proper-sqldbtype
Most column types will accept a string null and the db will automatically infer our intention, but for varbinary in MsSql the db complains that it cannot convert varchar to varbinary.
Currently, sql server errors out when passing a null value for a varbinary column.
The problem is exactly due to this:
https://stackoverflow.com/questions/29254690/why-does-dbnull-value-require-a-proper-sqldbtype
Most column types will accept a string null and the db will automatically infer our intention, but for varbinary in MsSql the db complains that it cannot convert varchar to varbinary.