gpt4 book ai didi

sql-server - 使用 SSIS 2012 将数据从 Sql Server 2014 导出到 Excel 文件

转载 作者:行者123 更新时间:2023-12-03 02:39:36 34 4
gpt4 key购买 nike

我使用的是 Windows 8.1、Office 2013、Visual Studio 2013、SQL Server 2014 和 SSIS 12.0

我有一个数据流,其中包含 OLE DB 源、数据转换和 Excel 目标。我的 OLEDB 源
enter image description here数据转换 enter image description here我在 (C:\XX) 文件夹中创建了一个 Excel 文件 StudentInfo.xls 并建立了连接 enter image description here

一切正常,但是当我执行它时,出现以下错误:

Error: 0xC0209303 at DynamicExcel, Connection manager "Excel Connection Manager": The requested OLE DB provider Microsoft.Jet.OLEDB.4.0 is not registered. If the 64-bit driver is not installed, run the package in 32-bit mode. Error code: 0x00000000. An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered".

Error: 0xC020801C at Data Flow Task, Excel Destination [24]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0209303. There may be error messages posted before this with more information on why the AcquireConnection method call failed.

此链接 ( Switch package from 64bit to 32bit ) 让我将 Run64BitRuntime 属性更改为 False

更改属性后,我现在收到一组不同的错误:

Error: 0xC0202009 at DynamicExcel, Connection manager "Excel Connection Manager": SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft JET Database Engine" Hresult: 0x80004005 Description: "The Microsoft Jet database engine cannot open the file ''. It is already opened exclusively by another user, or you need permission to view its data.".

Error: 0xC020801C at Data Flow Task, Excel Destination [24]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.

最佳答案

我有同样的消息,我在 Visual Studio 2010 上有一个 SSIS 项目,我在该页面上读取了一个 file.xls,在我的项目中,当我尝试将一些查询结果存储到 excel 文件时,VS 2010 没有任何问题,向我抛出“Microsoft.Jet.OLEDB.4.0”提供程序未在本地计算机上注册“,我按照以下步骤修复了该问题,

1.-打开IIS

2.-在高级设置中更改应用程序池

3.-true 启用 32 位应用程序。

仅此而已

ps.我在Active Solution Platform上将Configuration Manager更改为X86

关于sql-server - 使用 SSIS 2012 将数据从 Sql Server 2014 导出到 Excel 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33989338/

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