如何设置 azure 数据工厂管道中帐户存储中的 CSV 文件的路径

How to set the path of a CSV file that is in account storage in azure data factory pipeline

我创建了一个 SSIS 包,它从 CSV 文件中读取(使用 Flat file connection manager)并将记录加载到数据库中。我已将它部署在 Azure 数据工厂管道上,我需要将 CSV 文件的路径作为参数提供。我已经创建了一个 azure 存储帐户并在那里上传了源文件,如下所示。

我可以直接在SSIS包设置中给Import文件的源文件URL吗,如下图?我试过了,但它目前抛出 2906 错误。我是 Azure 的新手 - 感谢这里的任何帮助。

首先,您说的是 Excel,然后您说的是 CSV。这是两种不同的格式。但是既然你提到了平面文件连接管理器,我就假设你指的是 CSV。如果没有,请告诉我,我会更新我的答案。

我认为您需要安装显示每个步骤的 SSIS Feature Pack for Azure and use the Azure Storage Connection Manager. You can then use the Azure Blob Source in your data flow task (it supports CSV files). When you add the blob source, the GUI should help you create the new connection manager. There is a tutorial on MS SQL Tips。它已经有几年了,但我认为没有太大变化。

附带一想,您选择使用 SSIS 而不是本机 ADF V2 是否有原因?它在 copying data 从 blob 存储到数据库方面做得很好。