store procedure

  • Thread starter Thread starter Hrvoje Voda
  • Start date Start date
H

Hrvoje Voda

I'm sending parameters into store procedure but when I send a null value it
gives me an error.
It only works if I put a null value directly into store procedure.
Why?

Hrcko
 
Hrvoje said:
I'm sending parameters into store procedure but when I send a null value it
gives me an error.
It only works if I put a null value directly into store procedure.
Why?

Hrcko

You should use DbNull.Value at the "dotnet side" to get a null at the
"sql side".
 
Back
Top