I\'m using a SqlParameter to pass in null values to a table for various columns that are nullable. The problem is that SqlParameter looks like it defaults to nv
SqlParameter
There’s another way to do this. You can still use AddWithValue, however use SqlBinary.Null instead of DBNull.Value: c.Parameters.AddWithValue(“@cfp”, SqlBinary.Null); Don’t forget to import System.Data.SqlTypes into your project.
There’s another way to do this. You can still use AddWithValue, however use SqlBinary.Null instead of DBNull.Value:
c.Parameters.AddWithValue(“@cfp”, SqlBinary.Null);
Don’t forget to import System.Data.SqlTypes into your project.
Source