删除文件DSN后Excel查询表仍然有效,怎么可能?

发布于 2024-07-16 07:47:04 字数 139 浏览 4 评论 0原文

我有一个带有数据透视表的 xls,使用 proc 来填充它。

我删除了“管理工具 - odbc - 文件 DSN”中的数据连接,但它仍然有效,这怎么可能?

这是否意味着收件人不必提供文件 DSN 即可查看数据透视表中的数据?

I have an xls with a pivot table using a proc to populate it.

I deleted the data connection in 'admin tools - odbc - file DSN' and it still works, how is that possible?

Does that mean that the recipent doesn't have to have the file DSN present in order to see data in the pivot table?

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

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

发布评论

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

评论(3

半透明的墙 2024-07-23 07:47:05

这是可能的,因为当您使用文件 DSN 时,Excel 会读取该文件的内容,该文件本质上包含构建与外部数据提供程序的连接字符串的所有条目。 然后 Excel 将构造连接字符串并使用它来填充查询表。 因此,一旦您第一次成功刷新 QueryTable,您就不再需要该文件 DSN。 因此,在您删除它之后,或者在其他没有该 DSN 的计算机上,它仍然可以工作。

顺便说一句,当您在 QueryTable 中使用文件 DSN 时,如果您更新 FileDSN(例如新数据库或任何类似的东西),您的 QueryTable 刷新将不会反映该更改,您必须重建 QueryTable。

That is possible because when you use the file DSN, excel reads the content of the file, which essentially has all the entries to construct the connection string to outside data provider. Then Excel will construct the connection string and use that to populate the QueryTable. So once you successfully refresh the QueryTable for the first time, you no longer need that file DSN. So it will work event after you delete it or in some else’s machine without that DSN.

On a side note when you use file DSN in a QueryTable and later if you update the FileDSN (say to a new database or any thing like that) your QueryTable refresh will not reflect that change, you have to reconstruct the QueryTable.

知你几分 2024-07-23 07:47:05

当您创建数据透视表一次后,该 .xls 文件将在您的硬盘驱动器中独立工作。 因此,它不需要任何 DSN。

when you create pivot table once, afterward that .xls file will work independently in your Hard Drive. So, it doesn't require any DSN furthermore.

安穩 2024-07-23 07:47:05

数据透视表在其后面保留了数据透视表数据缓存。 您可以按照自己喜欢的方式操作这些数据,但显然,在您重新连接之前它不会刷新。

斯坦·斯科特

The Pivot Table keeps a Pivot Table data cache behind it. You can manipulate this data any way your like, but it won't refresh, obviously, until you reconnect.

Stan Scott

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