How to put NULL into database column

  • Thread starter Thread starter Lubomir
  • Start date Start date
L

Lubomir

Hi,

I have a stored procedures that takes few parameters( lets say 2).
Parameters are value for particular columns.

A column of type "binary' can contain "null".

I want to update a row, so that first column will have some value and second
should contain null. How can I do it?

MyParam.Value = null;
cmd.Parameters.Add(MyParam); // obviously doesn't work

Thanks,
Lubomir
 
Back
Top