As the the question says, what should I set the value of a parameter to if I don't want it to update the DB?
e.g.
UPDATE table1
SET col1 = @someval ,
col2 = @someotherval
WHERE col3 = 1;
If in my c# logic I decide that col2 does not need to be updated because the value being passed in is null, what should I set the parameters value so that it does not update that column?
I have to use parameterised queries and I don't want to edit the original update statement.