with self.proc do
begin
active:=false;
parameters.ParamByName('@amt').value:='001';
active:=true;//当active为true时,下一条语句就会出错的.
ExecProc;
end;
错误提示:
CommandText does not return a result set
连接是没有问题的.
begin
active:=false;
parameters.ParamByName('@amt').value:='001';
active:=true;//当active为true时,下一条语句就会出错的.
ExecProc;
end;
错误提示:
CommandText does not return a result set
连接是没有问题的.
begin
active:=false;
parameters.ParamByName('@amt').value:='001';
{active:=true;有了这一条就不要下一条了,或者用这条下一条就省了,这两条语句是不能同时用的,如果你的存储过程有返回值的话,就用上面的语句,否则用下面的语句}
ExecProc;
end;
错误提示: