无法在多个数据库上使用 Delphi 4 中的 Crystal Reports 2008 报表
作为从 ASE (Sybase) 迁移到 MS SQL Server 的一部分,我已将大量报表从 Crystal Reports 7 转换为 Crystal Reports 2008。我还通过 Crystal Reports 2008 中的“设置数据库位置”选项对其进行了验证。当我转换报告时,我将它们指向我的测试数据库之一(我们称之为 DB_a)。我从 Delphi 4 应用程序调用这些报告,它工作得很好。现在的问题是,当我尝试为另一个数据库(假设为 DB_b)运行此报告时,它会给出错误:“错误:文件报告名执行中出现 723 错误”。
如果我返回 Crystal 2008 并根据 DB_b 验证报告,它在 DB_b 上工作正常,但在 DB_a 上给出错误。我编译了报告在两个数据库上使用的相同存储过程,并且它返回的数据在从后端调用的两个数据库上都是相同的。
有谁知道问题可能是什么?
谢谢
I've converted a bunch of reports from Crystal Reports 7 to Crystal Reports 2008 as part of a migration from ASE (Sybase) to MS SQL Server. I also verified it via the "Set Database Location" option in Crystal Reports 2008. When I converted the reports I pointed them to one of my test databases (let's call this DB_a). I call these reports from a Delphi 4 application and it works fine. The thing now is that when I try and run this report for another database (let's say DB_b) it gives an error: "Error: 723 Error in file reportname Execute ".
If I go back to Crystal 2008 and verify the report against DB_b it works fine on DB_b but gives the error on DB_a. I compiled the same stored procedure that the report uses on both databases and the data that it returns is the same on both called from the back-end.
Does anyone have any idea what the problem could be?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在设置数据集位置。您需要将 Overridden Qualified table Name: 设置为与 Table Name: 中的值相同的名称:
认为它可能不需要相同的名称,只是某个名称。这正是我们为保持一致性所做的事情。
我们所有的报告都基于存储过程。
因此,如果表名称:rptAP0100:1
覆盖的限定表名称:dbo.rptAP0100;1
我不确定为什么 Crystal 不够聪明,无法知道。然而,几年前我曾向那里的支持人员询问过同样的问题。
In Set Dataset location. You need to set the Overridden Qualified table Name: to the same name as the value in Table Name:
Thought it is possible that it does not need to be the same name just some name. That is just what we do to keep it consistant.
All our reports are based off stored procedures.
So if Table Name: rptAP0100:1
The Overriden Qualified Table Name: dbo.rptAP0100;1
I am not sure why Crystal is not smart enough to know. However I asked there support this very same question a few years back.