Import data from Excel using SSIS without knowing sheet name

后端 未结 6 1729
情话喂你
情话喂你 2021-01-04 22:39

I have a spreadsheet that is updated by another server (out of my control) and I need to automate bringing that data into SQL 2005. The data is always the first page of the

6条回答
  •  一整个雨季
    2021-01-04 23:09

    I have had this same issue myself in the past and was unable to find a solution to having an Excel file be read in which has its sheet name change from file to file.

    My guess, which I was unable to get to work, would be to use expressions in the properties of the data connection. You would need to somehow read the sheet name into a variable, then use that variable's result in the sheet name for the data connection.

    Best of luck to you, and sorry I couldn't be of more help.

提交回复
热议问题