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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top