[英]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.