Dynamically assign filename to excel connection string

前端 未结 3 2175
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-27 21:24

This is my very first time playing with SSIS in SQL Server 2012. I can successfully read an excel file and load its content to a table in SQL server 2012. The task is a simp

3条回答
  •  遥遥无期
    2020-11-27 21:55

    We can define our connection string like below in Expression:

    Provider=Microsoft.ACE.OLEDB.12.0;
    
    Data Source=" + @[User::InputFolder] + "\\"+ @[User::FileName] +";
    
    Extended Properties=\"EXCEL 12.0 XML;HDR=YES\";
    

提交回复
热议问题