Hi,
Becouse some of my stored procedure parameters can be NULL, for every parameter with potential NULL value I have to do checking like this:
errorParams[3].Value = (e.InnerException==
null) (object)DBNull.Value:(object)e.InnerException;When I do it like this ( it is a part of preparing values for insert ):
errorParams[3].Value = e.InnerException
no row is added. Is there any way to pass over that check : (e.InnerException==null) (
and do it easier
This the sample exception message for that issue:
{System.Data.SqlClient.SqlException: Procedure or Function 'sp_addError' expects parameter '@InnerException', which was not supplied.
Thanks,
Pawe