首页 文章

在将数据从SSIS导出到Excel时,是否需要在目标计算机上安装MS excel软件

提问于
浏览
1

在我的开发机器中,我安装了MS excel . 我可以通过SSIS(visual studio)将数据导出到DB中 . 但是当我将它部署到没有安装MS excel的QA环境时,软件包失败并出现以下错误 . 如果确实需要在目标机器上安装MS excel软件,同时通过SSIS将数据从数据库导出到excel,请帮助我 .

这是我在excel表中使用create excel和tabs的查询 . 创建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文件导入处理器” . 可能未正确配置连接,或者您可能没有此连接上的权限 .

请帮忙 .

3 回答

  • 0

    我只是在SQL服务器作业上设置了32位模式运行 . 它就像一个魅力 .

  • 0

    不,唯一需要的是喷气发动机 . https://www.microsoft.com/en-us/download/details.aspx?id=13255

  • 1

    是的,它需要在系统中安装MSexcel . 没有它我们没有内部定义来让系统完全理解文件格式 .

相关问题