5,388
社区成员
发帖
与我相关
我的任务
分享
create procedure dbo.Test
as begin
select * from tableName
end
AdoQuery1.close;
AdoQuery1.sql.text := 'Execute Test';
Adoquery1.open;
adodataset.commandText:='exec procname';
adodataset.open;
with adoquery do
begin
close;
sql.clear;
sql.add(' exec procName (:A,:B,...)');
Parameters.ParamByName('A').Value:='';
Parameters.ParamByName('B').Value:='';
....;
ExecSQL;
end;