SSRS:从 Excel 文件查询数据时出错(通过 ODBC)

发布于 2024-07-10 22:45:56 字数 324 浏览 4 评论 0原文

我正在尝试使用 SSRS 渲染一个简单的图表。 数据位于 Excel 工作表中。 我已经设置了用户 DSN 并使用 ODBC 在 SSRS 中创建了数据源。

我可以在Data选项卡中查询Excel。 但是,在尝试预览时,我收到以下错误:

错误 [hy000] [microsoft] [odbc excel 驱动程序] 连接 查看链接的 Microsoft Excel 工作表已丢失。

任何人都知道为什么会发生这种情况以及如何解决这个问题?

I am trying to render a simple chart using SSRS. The data is in an Excel sheet. I have set up an user DSN and created a data source in SSRS using ODBC.

I am able to query the excel in Data tab. However while trying to preview, I get the following error:

error [hy000] [microsoft] [odbc excel driver] the connection for
viewing your linked Microsoft Excel worksheet was lost.

Anyone knows why this is happening and how this can be solved?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

白鸥掠海 2024-07-17 22:45:56

我会考虑创建一个 SQL Sever Integration Services 包以将数据从 Excel 导入到 SQL 数据库,并使用该数据库作为报告的数据源。 可以安排 SSIS 包定期刷新数据。
使用 Excel 等基于文件的数据源很容易受到人们修改电子表格结构以及移动、删除或锁定文件的影响。

I would consider creating a SQL Sever Integration Services package to import the data from Excel to a SQL database and using the database as the data source for the report. The SSIS package could be scheduled to periodically refresh the data.
Using a file based data source like Excel is vulnerable to people modifying the structure of the spreadsheet and moving, deleting or locking the file.

摇划花蜜的午后 2024-07-17 22:45:56

似乎是一个短暂的错误。 我删除了数据集,创建了一个新数据集并再次重新运行。 有效。

Seems to be a fleeting error. I deleted the dataset, created a new one and re-ran again. It worked.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文