[英]Azure SQL Data Factory Copy Activity with Sink Stored Procedure
I cant get this going and seem not to find solutions on this forum.我无法做到这一点,似乎没有在这个论坛上找到解决方案。 I am new to Azure我是 Azure 的新手
I have successfully established a direct SQL Query copy activity from on Prem SQL Server to Azure SQL.我已经成功建立了一个直接的Z9778840A0100CB30C982876741B0B5A2A Q QUERY ACPERY活动,从PREM Z9778840A0A0A0CB30C9828741B0B5A2Z SERVE上的PREM Z9778840A0A0AB041B5AB5AB5AB51B580F17772207772377F1377F1377F1377F151F151F151F151F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1CC.F1CC。
When I proceed to edit to include a Stored Procedure it fails.当我继续编辑以包含存储过程时,它失败了。 I have created a data type and stored procedure as follows in the Azure Sql;我在Azure Sql中创建了如下数据类型和存储过程;
CREATE TYPE [dbo].[Patch] AS TABLE(
[BaseKey] int,
[GISKey] [varchar](10),
[ActiveFrom] datetime
)
DROP PROC IF EXISTS dbo.spCopyPatch
GO
CREATE PROC dbo.spCopyPatch
@Patch dbo.Patch READONLY,
@BaseKey int,
@GISKey varchar(10),
@ActiveFrom datetime
AS
INSERT INTO dbo.Patch( BaseKey,GISKey,ActiveFrom)
VALUES(@BaseKey,@GISKey,@ActiveFrom);
GO
I then proceeded to edit the copy activity Sink.然后我继续编辑复制活动接收器。 It is able to pick up the Stored Procedure OK;它能够拿起存储过程OK;
However this fails on debug: Am I getting it right or missing something?然而,这在调试时失败了:我是做对了还是遗漏了什么?
Your help highly appreciated in advance.提前高度感谢您的帮助。
I resolved this and wrote direct from OnPrem SQL Server to Azure SQL Server.我解决了这个问题,并直接从 OnPrem SQL 服务器写入 Azure SQL 服务器。
Step 1. Update Source with the a dataset drawn from the SQL.步骤 1.使用从 SQL 中提取的数据集更新 Source。
Step 2. Updated My Stored Procedure to what is highlighted in green below步骤 2.将我的存储过程更新为下面以绿色突出显示的内容
Step 3. Populate Sink in order and shown below步骤 3.按顺序填充 Sink,如下所示
Debug Copy activity and you have it调试复制活动,你就拥有了
usually there are 2 ways to data transformations in ADF based on the logic which you see:根据您看到的逻辑,通常有两种方法可以在 ADF 中进行数据转换:
for ELT:对于 ELT:
for ETL:对于 ETL:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.