I keep getting the exception
The SqlParameterCollection only accepts non-null SqlParameter type objects, not String objects
, while execut
I had been getting the same error and had to use AddWithValue like this...
AddWithValue
cmd.Parameters.AddWithValue(@columnToUpdate, newValue); cmd.Parameters.AddWithValue(@conditionalColumn, conditionalValue);