简体   繁体   English

Azure 数据工厂 ADF 数据管道将文件名包含在复制数据到 sql 数据库中

[英]Azure Data Factory ADF data pipeline to include filename in copy data to sql databse

I'm trying to create a pipeline on Azure data factory.我正在尝试在 Azure 数据工厂上创建管道。 The pipeline pick up a file from azure file store and copies the data to a sql table.管道从 azure 文件存储中获取一个文件,并将数据复制到 sql 表中。 It works fine using a copy data task, but I want to include the name of the file in a column in the sql table.它使用复制数据任务工作正常,但我想在 sql 表的列中包含文件名。 Is this possible?这可能吗?

The Copy activity in Azure Data Factory v2 does have the ability to add extra columns such as variables and filepaths at run time. Azure 数据工厂 v2 中的复制活动确实能够在运行时添加额外的列,例如变量和文件路径。 Use variables like $$FILEPATH :使用像$$FILEPATH这样的变量:

文件路径

See the official docs for more info:有关详细信息,请参阅官方文档:

https://learn.microsoft.com/en-us/azure/data-factory/copy-activity-overview#add-additional-columns-during-copy https://learn.microsoft.com/zh-cn/azure/data-factory/copy-activity-overview#add-additional-columns-during-copy

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

相关问题 具有2个副本的Azure数据工厂管道 - Azure Data Factory Pipeline With 2 copy Azure 数据工厂 - 从 SQL 到 CRM 的管道复制 - 错误 - Azure Data Factory - Pipeline Copy from SQL to CRM - Error ADF(azure数据工厂)将数据从SQL Server复制到Cosmos DB,其中字段包含json对象 - ADF (azure data factory) copy data from SQL Server to Cosmos DB with field contain json object 如何重命名 ADF(Azure 数据工厂)管道中的文件夹 - How to rename a folder in ADF(Azure data factory) pipeline 查找谁触发了 Azure 数据工厂管道 - ADF - Find who triggered Azure Data Factory pipeline - ADF 无法使用数据工厂管道将数据从 azure 数据湖 gen2 复制到 azure sql db - Cannot copy data from azure data lake gen2 to azure sql db using data factory pipeline Azure 数据工厂管道 - Azure Data Factory pipeline 在azure数据工厂复制管道中使用管道参数 - Use pipeline parameters in azure data factory copy pipeline Azure 数据工厂 - 同一管道中的不同复制数据映射视图? - Azure Data Factory - different copy data mappings views in the same pipeline? 如何在复制活动( NoSQL 到 SQL )中过滤 ADF(Azure 数据工厂)V2 中最后一次成功触发器运行的数据? - How to filter data on last successful trigger run in ADF(Azure Data Factory) V2 in copy activity ( NoSQL to SQL )?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM