DataSnap下ClientDataSet如何使用参数
with dmClient.cdsPatientOut do
begin
Close;
Params[0].AsDateTime:=Date;
Params[1].AsDateTime:=Date;
Execute;
end;
cdsPatientOut的CommandText:=Select * from Patient where EnterDate>:BeginDateTime and EnterDate<:EndDateTime,
运行时说不能在打开的数据集上进行这个操作。。。用Open和Execute都不行。
[解决办法]
服务器端的ADOquery 或者ADOtabel 要始终出于关闭状态。