I am populating tables using a stored procedure. The table allows a \'null\' for the middle initial of the name, but I\'m getting the following error message:
You can add to project and use following extension method:
public static SqlParameter AddWithValueSafe(this SqlParameterCollection parameters, string parameterName, object value) { return parameters.AddWithValue(parameterName, value ?? DBNull.Value); }