DataSetProvider.ApplyUpdates 如何取得更新出错的数据
DataSetProvider.ApplyUpdates 怎么取得更新出错的数据?
DSPUpdate.ApplyUpdates(VariantFromBinary(Delta),-1,ErrorCount);
这个语句是当更新出错则跳到下一笔,但更新完了,我怎么取得所以更新失败的数据并显示出来?
------解决方案--------------------
我是马申
------解决方案--------------------
在三层/多层中,我的做法是使用事务更新,要不全部提交更新成功,要不只要有任一笔错误都回滚取消更新
具体取出错误的那一笔我也不知道呢
------解决方案--------------------
------解决方案--------------------
ApplyUpdates method (TCustomProvider)
ApplyUpdates returns a data packet (as an OleVariant) of updates that could not be applied to the database.
DSPUpdate.ApplyUpdates(VariantFromBinary(Delta),-1,ErrorCount);
这个语句是当更新出错则跳到下一笔,但更新完了,我怎么取得所以更新失败的数据并显示出来?
------解决方案--------------------
我是马申
------解决方案--------------------
在三层/多层中,我的做法是使用事务更新,要不全部提交更新成功,要不只要有任一笔错误都回滚取消更新
具体取出错误的那一笔我也不知道呢
------解决方案--------------------
------解决方案--------------------
ApplyUpdates method (TCustomProvider)
ApplyUpdates returns a data packet (as an OleVariant) of updates that could not be applied to the database.