I have problems inserting a null paramater with the AddInParameter method.
cmd.AddInParameter(someString, someValueWhichCanBeNULL)
As soon as the 2nd param is null, it fails. I also Tried DBNull.Value, fails too. Ideas?
The message is: AddInParameter @MyParam with null value or Unsupported Property Type: DBNull
Thanks!
Use the overload of
AddInParameterthat takes three arguments; you want this:(It can’t determine the type of the parameter from the DBNull.Value alone)
Hope that helps!