如何将多个csv文件从Blob存储复制到Azure SQL? [英] how to copy multiple csv files from blob storage to azure Sql?

查看:124
本文介绍了如何将多个csv文件从Blob存储复制到Azure SQL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

   我在blob存储中有多个.csv文件,并将它们加载到sql表中,使用复制活动只能加载一个文件,但是如何复制blob中的所有文件.

     I am having multiple .csv files in blob storage and loading them to sql table,using copy activity am able to load only one file,but how to copy all the files in blob.

预先感谢

推荐答案

Naresh,

Hi Naresh,

现在,您需要使用 对于每个活动,要包装复制活动,该复制活动会将一个csv文件中的数据加载到sql表中.但在此之前,请使用 获取元数据活动以获取blob容器中的所有文件名,然后将这些文件名传递给For每个活动以循环复制它们.这个 doc 提供了一个从多个表复制数据的示例,该示例与您的要求非常相似.希望有帮助.

Now you need to use an For each activity to wrap the copy activity, which loads data from one csv file into sql table. But before that, please use a Get Metadata activity to get all the file names in the blob container, then pass these fileNames into For each activity to loop copying them. This doc gives an example to copy data from multiple tables, which is quite similar with your requirement. Hope that helps.


这篇关于如何将多个csv文件从Blob存储复制到Azure SQL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆