gpt4 book ai didi

ssis - 通过 OleDb ACE 访问 Excel 2007 二进制文件 (.xlsb)

转载 作者:行者123 更新时间:2023-12-04 08:46:38 25 4
gpt4 key购买 nike

我完美地找到了 Excel 2007 二进制格式(扩展名为 .xlsb)
适合我的需要,因为它加载速度快且非常紧凑。我提供一个
Excel 中包含大量数据的一堆报表,这些报表是
实际上正在加载一个 IS 包。

所以我假设转换为这种格式,阅读文档
访问 Ole DB Provider 12,其中写到 xlsb 支持此
提供者。我在 Excel 中转换了文件,然后在尝试更改它们时
在包中(只需通过添加“b”来更改文件的路径
后缀),我收到以下错误消息:

"Test connection failed because of an error in initializing provider. This 
file was created in a previous beta version of Excel 2007. Open the file
with Excel 2007 to save it to the most recent version of the Excel 2007 file
format before opening the file in Access 2007."

嗯,我认为这可能是转换的一些问题
文件,所以我拿起了一个全新的文件并填充了一些信息。试过
又是同样的错误!!

然后我尝试使用“.udl”文件的方法,同样的错误!
然后我尝试在不同的机器上测试:
- 我自己的(Windows Vista SP1)
- 我的同事(Windows XP SP2)
- IS 服务器(Windows Server 2003 x64 SP2)

并且错误仍然存​​在。我发现重现错误很容易,以至于我是一个
有点惊讶我没有通过谷歌搜索找到任何关于它的信息!

有人可以帮助我吗?

提前致谢,
拉斐尔

最佳答案

我知道这是旧帖子。几天前我遇到了这个问题,经过很多努力,我能够解决它。希望它可以帮助某人。

就我而言,我有同样的错误:

This file was created in a previous beta version of Excel 2007. Open the file with Excel 2007 to save it to the most recent version of the Excel 2007 file format before opening the file in Access 2007."



当我尝试打开我的 OldDB 连接时会发生这种情况。我怀疑这是由于我的连接字符串语法或值问题,但经过大量更改后没有任何效果。

我在我的机器上安装了以下内容:

1) Microsoft Access 数据库引擎 2010 版本 14.0.7015(从 here 获取)

2) Microsoft Office Access 数据库引擎 2007 版本 12.0.4581(从 here 获取)

这是导致错误发生的我的连接字符串:
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Project\Excel1.xlsb;Extended Properties='Excel 12.0;HDR={1}'"

然后我发现这个解决了我的问题:

Microsoft Office Access Runtime and Data Connectivity 2007 Service Pack 2 (SP2) .

我只需要下载,运行它并重新启动我的机器。然后瞧,我可以打开我的 OleDB 连接而没有那个错误。

希望这会有所帮助。

关于ssis - 通过 OleDb ACE 访问 Excel 2007 二进制文件 (.xlsb),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/389520/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com