Hi,
I need to input a null value in a stored procedure (SqlServer). The values are coming from an array in VB.Net.
vinparam(3) = Nothing doesn't seem to cut it (I get an error during runtime saying the value is missing).
vinparam(3) = System.DBNull doesn't work.
As you probably expect, it's the value for vinparam(3) that's supposed to be null (in SqlServer management Studio I use
uv_Mom 'xxx', null, 1
).
So what should I use?
Thanks a lot!
Pettrer
I need to input a null value in a stored procedure (SqlServer). The values are coming from an array in VB.Net.
vinparam(3) = Nothing doesn't seem to cut it (I get an error during runtime saying the value is missing).
vinparam(3) = System.DBNull doesn't work.
As you probably expect, it's the value for vinparam(3) that's supposed to be null (in SqlServer management Studio I use
uv_Mom 'xxx', null, 1
).
So what should I use?
Thanks a lot!
Pettrer