当我尝试通过MSSQL Server数据导入连接到任何Excel时出现此错误,即SSIS包"Microsoft.ACE.OLEDB.16.0"提供程序未在本地计算机上注册.(System.Data)它不是相同的版本我认为需要其他修补
我有一个运行在服务器上的每月运行的SQL Server作业.Job正在使用SSIS包,并且应该从数据库中提取数据并创建Excel工作表并将数据复制到Excel 2003中.
由于Excel 2003中的截断问题,我实际上从数据库获得了大约140,000行(Excel支持64,000行).所以我修改了配置文件以支持2007 Excel格式.
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + @[User::FullPath] + ";Extended Properties=\"Excel 12.0;HDR=YES\"
Run Code Online (Sandbox Code Playgroud)
但是当我尝试执行作业时,它无法显示错误消息:
"请求的OLE DB提供程序Microsoft.ACE.OLEDB.12.0未注册"
我有一种情况,我使用64位版本的Visual Studio代码来编写/调试powershell脚本.但是,由于Powershell脚本正在做什么,它需要在32位版本的Powershell中运行.它使用一些库来访问MS Access文件,所以我还没有找到一种方法让Powershell x64中的东西工作.
如果VS Code本身作为64位运行,有没有办法告诉VS Code运行32位版本的Powershell?例如,我可以修改launch.json文件以指定powershell本身的路径吗?
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File",
"script": "${file}",
"args": [],
"cwd": "${file}"
},
...
]
}
Run Code Online (Sandbox Code Playgroud)