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".
 

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