你用ClientDataSet1的CommandText属性做,直接调用存储过程.(datasetprovider要设为allowchangecommand...)
例:
clientdataset1.active:=false;
clientdataset1.commandtext:="storeproc1";//这里写要存储过程的参数。
clientdataset1.open;
例:
clientdataset1.active:=false;
clientdataset1.commandtext:="storeproc1";//这里写要存储过程的参数。
clientdataset1.open;
解决方案 »
- 请问下adoquery查出的数据如何用字符串数组获取
- 添加全局变量问题、
- 请教!!在线等
- 多表关联的数据集如何更新?
- 请大家指教一下提取数据库数据的问题,谢谢
- 晕…!把123456.63写入表中,存的却是123456.74,字段类型是decimal(15,2),哪错了???
- 进度条控件怎样用?
- 如何设置窗口的标题栏的颜色?
- 在用UDP进行文件传输是应该怎么来进行文件的分解与组包?
- 在用DEPHI6+ADO编程时,用一个循环改变一张表各字段的值时,出现错误,'Key colum information is insufficient or incorrect. Too many row
- 再问:::主 题:怎么得到SQL语句的执行时间???
- 帮帮忙,把下面的程序改成C,delphi我不懂
ParamValue1:String
begin
with ADOQuery1 do
begin
Close;
SQL.Clear;
SQL.Add('EXECUTE StoreProcName '+ParamValue1) ;//StoreProcName存储过程名称 ParamValue1存储过程参数
ExecSQL;
Close;
end;
end;
我用的是ADOStoredproc
怎么设呀
既然你要返回数据集,那么用
ADOStoredproc.Open;
wrong!
是三层结构的.在单机,网络情况下均测试通过.在Delphi5.0下编译ok.需要的话请尽快!!!
联系[email protected]
错误窗口显示如下:
Error
Project Project2.exe raised exception class EDatabaseError with
message 'ADOStoredProc1:Parameter'@tbdh_client' not found'.
Process stopped. Use Step or Run to continue.
with ADOStoredProc1.AddParameter do begin
DataType := ftString;
Direction := pdInput;
Value := '@tbdh_client';
end;
这个我想过,也试过,但是
[Error] Unit1.pas(514): Undeclared identifier: 'AddParameter'
ADOStoredProc1.Parameters.AddParameter
但是只能执行一次,第二次就出错
是不是该有个参数清除的操作,如果有,是什么?
请给看一下我刚发的问题
ADOStoredProc1.Parameters.Clear
为什么会这样?
不是已经关闭了,才打开的吗?
或者,你辛苦一下,这里问序列号的帖子很多。
Jneu 得 1分
afeisky 得 5分
Tense 得 1分
tikkypeng 得 40分
chechy 得 5分
coolbaby 得 1分
chechy 得 1分
lwm8246 得 5分
chechy 得 30分
chechy 得 20分
josephlong 得 1分
chechy 得 1分
skypeople 得 1分
yxjjx 得 1分
chechy 得 1分
chechy 得 20分
chechy 得 20分
chechy 得 6分
给出总分:161
给了你104分,我没食言(100分求一段实现程序)