pb 调用 SQLServer 存储过程 问题。
long li_emp_count = 0
declare proc1 procedure for getcount @counts = :li_emp_count output;
execute proc1;
fetch proc1 into :li_emp_count;
close proc1;
if SQLCA.SQLCode <> 0 then
string ls_sqlerr
ls_sqlerr = SQLCA.SQLErrText
MessageBox('系统提示', '出错! '+ls_sqlerr)
else
messageBox("",string(li_emp_count));
end if
这个存储过程的调用,怎么老提示:出错:Procedure has not been executed or has no results。但在SQLServer
控制台里调用,一切都是正常的。PB里调用是不是哪里有错误码?