复制主/从客户端数据集中的记录 delphi dbexpress
如何将记录信息从主/详细客户端数据集复制到新记录或现有记录。
例如,我想将 100 号发票的数据复制到 150 号发票,或者将 100 号发票的信息复制到新的
IBX 发票,我使用存储过程做到了这一点,但我遇到了客户端数据集的“锁冲突”问题当我应用更新时,没有等待事务,我认为这是因为信息已经在服务器端。
提前致谢
How can I copy the information of a record from a master/detail clientdataset to a new record or to an existing one.
For example I want to copy te data of invoice No. 100 to Invoice No. 150 or the information of invoice No. 100 to a new Invoice
With IBX I did that with storedprocedures but I am running into trouble with clientdataset with 'lock conflict on no wait transaction' when I apply the updates, i think its becasue the information is already on the server side.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“无等待事务上的锁定冲突”?
AFAIR,这是 Interbase/Firebird 错误。这可能意味着其他连接修改了记录但仍未提交......
更新:
我想到的其他事情:
您是否修改了 DBX 连接配置?如果您不知道/忽略 CommitRetaining 是什么/做什么,请确保将其配置为 FALSE。否则,会出现其他问题...
在 Firebird/Interbase 上,您只能从客户端应用程序提交/回滚。 SP 与事务控制无关。
'Lock conflic on no wait transaction'?
AFAIR, it's an Interbase/Firebird error. It could mean that other connection modified the record and still doesn't committed yet....
UPDATE:
Other things that came to mind:
Have you revised your DBX connection configuration? If you don't know/ignore what CommitRetaining is/do, make sure it's configured to FALSE. Otherwise, other problems will arise...
On Firebird/Interbase, you can only commit/rollback from Client application. SPs have no business with transaction control.