【发布时间】:2017-06-24 07:47:57
【问题描述】:
在我的开发机器中,我安装了 MS excel。我能够通过 SSIS(Visual Studio)将数据从 DB 导出到 excel 中。但是当我将它部署到未安装 MS excel 的 QA 环境中时,该软件包失败并出现以下错误。如果在通过 SSIS 将数据库中的数据导出到 excel 时确实需要在目标机器上安装 MS excel 软件,请帮助我。
这是我正在使用的查询在 excel 表中创建 excel 和选项卡。 创建 excel 文件并在其中“插入”新选项卡。
CREATE TABLE Inserted(
[fileid] integer
,[filename] string
,[rxcui] string
,[tty] string
,[rxnorm_description] string
,[related_brand_name] string
,[related_scdc] string
,[related_df] string
,[related_ndc] string
,[create_date] date
,[create_user] string
,[status] string
,[plan_year] string
,[update_date] date
,[update_user]string
)
用于上述脚本的连接管理器:
@[User::var_excel_destination] +"\\"+"FRF_File_Import_Detail_"+ Right("0" +(DT_STR,4,1252) datepart("yyyy", getdate()),4)
+ Right("0" +(DT_STR,2,1252) datepart("mm", getdate()) ,2)
+ Right("0" +(DT_STR,2,1252) datepart("dd", getdate()),2)+Right("0" + (DT_STR,2,1252) DatePart("hh",getdate()),2)
+ Right("0" + (DT_STR,2,1252) DatePart("mi",getdate()),2)
+ Right("0" + (DT_STR,4,1252) DatePart("ss",getdate()),2) +".xls"
在这一步失败并出现以下错误:
错误描述:无法获取连接“ECM FRF 文件导入处理器”。连接可能未正确配置,或者您可能没有此连接的正确权限。
请帮忙。
【问题讨论】:
-
我为您的问题提供了正确答案。
标签: sql-server excel ssis etl