在复制活动期间将列添加到目标 [英] Add Column To Destination During Copy Activity

查看:70
本文介绍了在复制活动期间将列添加到目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要在从BLOB存储复制到Azure SQL时在目标记录上添加时间戳。    是列映射的用例吗?    当我在目标表上有一个rowid时,副本失败了,因为它试图将第一个
列放在目标中该rowid列的源中。



有没有其他方法可以做到这一点,我没有想到?



谢谢你b $ b $
Andy


I need to add a timestamp on the destination records while copying from BLOB storage to Azure SQL.    Is the a use case for column mapping?    When I had a rowid on the destination table the copy failed because it tried to place the first column in the source in that rowid column in destination.

Is there another way to do this that I am not thinking of?

thanks

Andy

推荐答案

您好,

您可以使用列映射来执行此操作。

You can use column mapping to do so.

https://azure.microsoft.com/en-gb/documentation/articles/data-factory-azure-sql-connector/

https://azure.microsoft.com/en-gb/documentation/articles/data-factory-azure-sql-connector/

您还可以使用sqlsink存储过程活动,这个是我用来添加固定列到复制活动(如文件名,slicestart,...)

You could also use a sqlsinkstoredprocedureactivity, this is what i use to add fixed columns to the copy activity (like filename, slicestart,...)





这篇关于在复制活动期间将列添加到目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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