简体   繁体   English

Azure Blob到Azure SQL数据库-数据工厂

[英]Azure Blob to Azure SQL Database - Data Factory

I have a CSV file which contains Name and DOB of persons. 我有一个CSV文件,其中包含人员的姓名和DOB。 I want to store it in Azure SQL database with an additional column of Age which has to be calculated using current date and DOB (from CSV file). 我想将其存储在Azure SQL数据库中,并且必须使用当前日期和DOB(来自CSV文件)来计算“年龄”的附加列。 Please suggest how to find age in a pipeline activity from this file and store in database. 请建议如何从该文件中查找管道活动中的年龄并将其存储在数据库中。 Thanks 谢谢

One of the simplest ways to go about doing this is by invoking a stored procedure on the destination (Azure SQL DB) from within the copy activity. 进行此操作的最简单方法之一是从复制活动中在目标(Azure SQL DB)上调用存储过程。 You can pass the ADF system variable 'WindowStart' as a parameter to the stored procedure and within the stored procedure the age calculation can be done. 您可以将ADF系统变量“ WindowStart”作为参数传递给存储过程,并且可以在存储过程中进行年龄计算。 This link ( https://azure.microsoft.com/en-us/documentation/articles/data-factory-azure-sql-connector/#invoking-stored-procedure-for-sql-sink ) would help. 该链接( https://azure.microsoft.com/zh-cn/documentation/articles/data-factory-azure-sql-connector/#invoking-stored-procedure-for-sql-sink )会有所帮助。

Thanks, Harish 谢谢,哈里斯

暂无
暂无

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

相关问题 有条件将Blob数据复制到Azure Data Factory中的Sql数据库 - Copy Blob Data To Sql Database in Azure Data Factory with Conditions 如何使用数据工厂将数据从 Azure Blob 存储增量加载到 Azure SQL 数据库? - How to incrementally load data from Azure Blob storage to Azure SQL Database using Data Factory? Azure 数据工厂获取元数据以获取 blob 文件名并将它们传输到 Azure SQL 数据库表第 2 部分 - Azure Data Factory Get Metadata to get blob filenames and transfer them to Azure SQL database table part 2 如何在没有 Azure 数据工厂的情况下将 csv 文件从 blob 存储加载到 azure sql 数据库 - How to load csv file from blob storage to azure sql database without Azure Data Factory Azure 数据工厂 - 从 Blob 批量导入 Azure SQL - Azure Data Factory - Bulk Import from Blob to Azure SQL 将 Azure blob 存储文件名保存到 Sql 表 - Azure 数据工厂 - Save Azure blob storage filename to Sql table - Azure Data Factory 如何使用azure数据工厂将数据从azure SQL数据库增量存储到azure blob存储,基于一些条件:日期需要更新 - How to store data incrementallyfrom azure SQL database to azure blob storage using azure data factory,based on some conditions:date need to be updated 如何从Azure数据工厂中的azure blob存储中获取某些数据,并将目标作为SQL数据库执行复制活动? - How to get just certain data from azure blob storage in Azure Data Factory performing copy activity with destination as SQL database? Azure 数据工厂到 Azure Blob 存储权限 - Azure Data Factory to Azure Blob Storage Permissions 使用azure数据工厂将数据从sql-server拉到azure blob的azure管道中的问题 - issue in azure pipeline using azure data factory to pull data from sql-server to azure blob
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM