I have such code:
Code: Select all
var
spOper: TADOStoredProc;
begin
....
spOper.ProcedureName := ProcName;
if spOper.Parameters.Refresh then
spOper.Parameters.ParamByName('Param').Value := AValue;
else
Exception.CreateFmt('Stored proc ''%s'' not found', [ProcName]);