T
tjming
Unregistered / Unconfirmed
GUEST, unregistred user!
我的程序是:
try
PubDM.Database1.starttransaction ;
BatchMove1.Execute;
PubDM.database1.commit;
MessageDlg('装入成功',mtConfirmation,[mbOK],0);
except
PubDM.database1.rollback;
MessageDlg('装入失败',mtConfirmation,[mbOK],0);
end;
总是报错,是不是BatchMove1.Execute;不能这样用呀?
报的错是
Project ****ang.exe raised exception class
EDBEngineError with message'A user transaction is
already in progress.
Batchmove的source=C:general.db
destination为oracle7里的general.db
mode为batCOPY,同时一个Grid连着这个oracle里的general.db,
问题在那呀?
try
PubDM.Database1.starttransaction ;
BatchMove1.Execute;
PubDM.database1.commit;
MessageDlg('装入成功',mtConfirmation,[mbOK],0);
except
PubDM.database1.rollback;
MessageDlg('装入失败',mtConfirmation,[mbOK],0);
end;
总是报错,是不是BatchMove1.Execute;不能这样用呀?
报的错是
Project ****ang.exe raised exception class
EDBEngineError with message'A user transaction is
already in progress.
Batchmove的source=C:general.db
destination为oracle7里的general.db
mode为batCOPY,同时一个Grid连着这个oracle里的general.db,
问题在那呀?