我的查询非常复杂,我想把所有的查询条件综合成一句查询语句,然后再把此查询语句赋给存储过程中的参数,但是出错.请各位帮帮我?急,在线等!我的存储过程如下: CREATE proc MC014 @t_sqlstr varchar(255) as select * from Table1 where @t_sqlstr go
if ADOStoredProc1.RecordCount =0 then
Begin
Application.MessageBox('Not Inquire Data !','System Information',MB_ICONERROR);
Exit;
end
else
ADOStoredProc1.Active:=True;
出错提示为:cannot perform this operation on a closed dataset.