在我的開發機器中,我安裝了MS excel。我可以通過SSIS(Visual Studio)將數據從數據庫導出到數據庫中。但是當我將其部署到未安裝MS excel的質量保證環境時,該包失敗,出現以下錯誤。如果真的需要在目標機器上安裝MS excel軟件,同時通過SSIS將數據從數據庫導出到excel,請幫助我。是否需要在目標機器上安裝MS excel軟件,同時將數據從SSIS導出到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"
它是在這個步驟與下面的錯誤失敗:
Error Description :Failed to acquire connection "ECM FRF File Import Processor". Connection may not be configured correctly or you may not have the right permissions on this connection.
請幫助。
我提供了正確的答案給你的問題。 –