简体   繁体   English

在 Azure 存储中创建文件列表并使用 ADF 将其发送到 sql 表

[英]Create list of files in Azure Storage and send it to sql table using ADF

I need to copy file names of excel files that are in my Azure Storage as blobs and then put these names in the SQL Server table using ADF.我需要将我的 Azure 存储中的 excel 文件的文件名复制为 blob,然后使用 ADF 将这些名称放入 SQL 服务器表中。 It can be a file path as a name of a file but the hardest thing is that in the dataset which takes all the files from one specific folder I have to select a sheet name and these sheet names are different for each file, therefore it returns an error.它可以是作为文件名的文件路径,但最困难的是,在从一个特定文件夹获取所有文件的数据集中,我必须 select 工作表名称,这些工作表名称对于每个文件都不同,因此它返回一个错误。 Is there a way to create a collective dataset without indicating the sheet name?有没有办法在不指定工作表名称的情况下创建集体数据集?

在此处输入图像描述

So, if I understand your question correctly you are looking for a way to write all Excel filenames to a SQL Database using ADF.因此,如果我正确理解您的问题,您正在寻找一种使用 ADF 将所有 Excel 文件名写入 SQL 数据库的方法。

You can use the generic Get Metadata activity and use a binary dataset as source.您可以使用通用的获取元数据活动并将二进制数据集用作源。 Select Child items as an field to retrieve. Select 子项作为要检索的字段。 This will retrieve all files in the folder.这将检索文件夹中的所有文件。 Then add a filter to only select the Excel file types.然后添加一个过滤器,只允许 select 和 Excel 文件类型。

获取元数据

Hope that this gets you on the right track.希望这能让你走上正轨。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM