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

鲁艾哈迈德

我正在使用Windows 8.1,Office 2013,Visual Studio 2013,SQL Server 2014和SSIS 12.0

我有一个包含OLE DB源,数据转换和Excel目标的数据流。我的OLEDB源
在此处输入图片说明数据转换在此处输入图片说明我已经在(C:\ XX)文件夹中创建了一个Excel文件StudentInfo.xls并建立了连接在此处输入图片说明

一切都很好,但是当我执行它时,出现以下错误:

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.

This link (Switch package from 64bit to 32bit) led me to change the Run64BitRuntime property to False.

After changing the property, I am now getting a different set of errors:

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.

Suvethan Nantha

I've the same message, I have an SSIS project on visual studio 2010, I read a file.xls on that page, in my project VS 2010 has not any problem when I tried to store some query results to excel file, throw me a 'Microsoft.Jet.OLEDB.4.0' the provider is not registered on the local machine', I fixed that problem next following this steps,

1.-Open IIS

2.-Change the appPool on Advanced Settings

3.-true to enable to 32-bit application.

就这样

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

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

将大型CSV文件导出到SQL Server并行

跳过行:将数据从SSIS导出到excel文件

如何将数据从SQL表导出到SSIS中的多个Excel文件?

在与2012兼容的备份文件中导出SQL Server 2014数据库(2008兼容)

使用SSIS将Sharepoint上的xml文件中的数据导出到SQL Server

Excel VBA从Excel导出到SQL Server

使用SSIS脚本任务(VB)将Excel数据导入现有SQL Server表时遇到问题

如何在Windows 7上使用SQL Server 2014的SSIS

SSIS:使用文件上次修改日期条件将数据从excel导入到sql server数据库

SSIS-创建xlsx文件的脚本任务(将数据从sql数据库导出到新的Excel文件)

使用xlsxwriter将数据框导出到excel文件

使用SSIS,如何将SQL结果导出到多个CSV文件?

使用asp.net C#TextFieldParser将数据从CSV导出到SQL Server

使用查询将SQL Server 2008表导出到Excel工作表

使用生成脚本从SQL Server 2012导出日期数据

SSIS-将多个SQL Server表导出到多个文本文件

SQL Server 2012 Management Studio:导出到Excel

使用javascript将表格导出到Excel文件

使用多个值的Excel列从Excel导出到SQL Server

使用.filedialog将查询结果导出到新的Excel文件

使用Excel文件名将Excel数据导出到CSV文件

如何将sql server中的大量数据导出到excel文件中

SQL Server 2014 导出 CSV 文件问题

如何使用 PHPExcel Cakephp 2.0 将数据导出到 Excel 文件

使用命令行从 SQL Server 2017 Reporting Services 导出到 EXCEL

使用 ADODB 将日期从 Excel 导出到 SQL Server

Sqlcmd 使用 SQL Server 存储过程将数据导出到 csv

使用双引号将 SQL Server 查询结果导出到 .csv 文件时,列中出现逗号问题,数据将拆分到下一列

将 R 数据框导出到 excel 但使用列标签作为 excel 文件中的标题