在做程序中,如何将A表中的数据传入B表,而不用删除?(100分)

一、客户端
with clientdataset1 do begin
try
if Active then Close;
CommandText := 'exec dbo.存储过程 '+ value1 + ',"' + value2 + '"';
Execute;
Close;
except
//出错提示
end;
end;
二、服务器端
创建一个TDataSetProvider对象,设定Dataset属性为Query,
并且将Options->poAllowCommandText属性置为True,就OK了。
三、你是新手吧?多看看Delphi的Demo
 
非常感谢!问题已解决。
 

Similar threads

回复
0
查看
886
不得闲
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
顶部