In Sybase proc we are raising error like below,i found it is retruning back but it not showing error message.Is this not working in Unidac or any other issue?
we already using set ansinull off so comparision " null" is working for us..
if @number null
begin
select @errmsg = 'Already active for location '
raiserror 20001 @errmsg
return 1
end
In Delphi we are using UniStoredProc Component
Code: Select all
with StoredProcUpdate do
begin
ExecProc;
Open;
end;i tried to execute stored proc using "try expect" also
Code: Select all
try
ExecProc;
except
DisplayException;
end