J
Jim Heavey
Hello, I have a Vb.Net client and I have some fields that I am attempting
to load with a value of "null" in a parm which is passed to a stored
procedure.
In the Vb.Net client I am looking at a text box and if that text box has
nothing in it (lenght is 0), I do the following....
dim null as object = dbnull.value
cmd.parameter(@MyField).value = null
When I run, I get an expception indicating that I have not provided a value
for "@MyField". It works fine when there is a non-null value. I also
tried "", and it works, but does not render a null in the field. How to I
place nulls into a parameter in the VB.Net client?
Thanks in advance for your assistance!!!!!!
to load with a value of "null" in a parm which is passed to a stored
procedure.
In the Vb.Net client I am looking at a text box and if that text box has
nothing in it (lenght is 0), I do the following....
dim null as object = dbnull.value
cmd.parameter(@MyField).value = null
When I run, I get an expception indicating that I have not provided a value
for "@MyField". It works fine when there is a non-null value. I also
tried "", and it works, but does not render a null in the field. How to I
place nulls into a parameter in the VB.Net client?
Thanks in advance for your assistance!!!!!!