Search code examples
.netstored-proceduressap-ase

Is it possible to send null value to stored proc in a sybase DB from a .NET app?


In one of my .NET apps, I'm trying to call a stored procedure in a sybase db, and some of the values that I'm sending, according to our business logic, can be null.

However, if I do send a null value, I get an "Unsupported parameter type" exception.

Any suggestions?


Solution

  • Do not add the parameter to the command at all, that's considered null as far as .NET is concerned.