各位大侠,江湖救急!!!
我用Delphi7.0/SQLServer2000开发中,用一TClientDataSet控件为cdsTMP_ATTEND_ORIGIN,在以下语句中总是会弹出‘cannot create new transaction because capacity was exceeded',出错后并不进入begin/except内处理不知道是如何引发的,但之前并没有什么事务啊,急盼指点!!
if cdsTMP_ATTEND_ORIGIN.ApplyUpdates(0) > 0 then
begin
ShowMessage('读入原始数据出错');
exit;
end;
或是:
try
cdsTMP_ATTEND_ORIGIN.ApplyUpdates(0)
except
ShowMessage('读入原始数据出错');
exit;
end;