begin
try
Close;
UnPrepare;
StoredProcName:='pro_newusercode';
Params.Clear;
Params.Add;
Params[0].Name:='@Result';
Params[0].DataType:=ftInteger;
Params[0].ParamType:=ptResult;
Params.Add;
Params[1].Name:='@newusercode';
Params[1].DataType:=ftString;
Params[1].ParamType:=ptoutput;
//Params[1].Value:='';
Prepare;
execproc;
//Active:=True;
// SqlRet := ParamByName('@Result').AsInteger;
{if SqlRet<0 then
begin
WARNING('系统不能取得单据编号!');
exit;
end;}
form1.Caption :=parambyname('@newusercode').asstring;
//SCRK_Code.Text := FieldByName(MainCodeName).AsString;
Close;
UnPrepare;
except
//WARNING('系统不能取得单据编号,请在退出后重试!');
Close;
UnPrepare;
end;
我是像上面那样写的,一个机器上能取出用户编号,而另一机器人取提示说“capbility not supported”,
另外我写的存储过程只能在我的机器调出,而别的机器提示没有发现,
在设完databasename后的storedprocname的下拉列表中也有此过程名呀,为什么执行时说是没发现,我已被这个问题折磨了好长时间了,再不解决,那么多的存储过程不就白写了吗?所以想到了动太地他建,但也出现了这个问题。难道它了认人,不会吧?
try
Close;
UnPrepare;
StoredProcName:='pro_newusercode';
Params.Clear;
Params.Add;
Params[0].Name:='@Result';
Params[0].DataType:=ftInteger;
Params[0].ParamType:=ptResult;
Params.Add;
Params[1].Name:='@newusercode';
Params[1].DataType:=ftString;
Params[1].ParamType:=ptoutput;
//Params[1].Value:='';
Prepare;
execproc;
//Active:=True;
// SqlRet := ParamByName('@Result').AsInteger;
{if SqlRet<0 then
begin
WARNING('系统不能取得单据编号!');
exit;
end;}
form1.Caption :=parambyname('@newusercode').asstring;
//SCRK_Code.Text := FieldByName(MainCodeName).AsString;
Close;
UnPrepare;
except
//WARNING('系统不能取得单据编号,请在退出后重试!');
Close;
UnPrepare;
end;
我是像上面那样写的,一个机器上能取出用户编号,而另一机器人取提示说“capbility not supported”,
另外我写的存储过程只能在我的机器调出,而别的机器提示没有发现,
在设完databasename后的storedprocname的下拉列表中也有此过程名呀,为什么执行时说是没发现,我已被这个问题折磨了好长时间了,再不解决,那么多的存储过程不就白写了吗?所以想到了动太地他建,但也出现了这个问题。难道它了认人,不会吧?
解决方案 »
- cxdbimage 与图片裁剪
- ADOQuery lookup多列怎么设置??
- 怎么提取QQ2008的截图功能!!
- Delphi 通过ADO 连接sybase12.0 关于事务的问题
- dll 中包含 adoconnection 后 不能调用的问题
- 菜鸟问题,这个combobox为什么不响应onchange事件?高手看看啊
- delphi程序员们我终于快有女朋友了快来看看秘方!!!
- fastreport 小写转大写金额,函数怎么调用?
- 关于时间!很简单!
- 用Delphi5+SQLserver6.5做C/S集成系统
- delphi6调试中的问题
- 请问各位高手,钩子中的时间问题怎样处理.??????????????????????
sorry!
TO;sddlfz(小不点了) 请您对您的言行负责!!哈哈~~