I have a stored procedure in the database that returns two Varchars, one or both of which might be null.
The code below gives an exception in Delphi if the the parameter is null
Code: Select all
...
MyStoredproc1.Execute;
MyStringVar:= MyStoredproc1.ParamByName('MyParamName').AsString;
...
end;