I need to copy blob storage csv file data to sql server table. But I also required some additional column in destination while using copy activity in azure data factory pipeline.
I refer this link 'https://blog.pragmaticworks.com/using-stored-procedure-in-azure-data-factory'.
I created table type and insert data stored procedure. But when I'm trying to use that in copy activity 'sink', it gives me 2 textboxex in sink dataset table parameter.
As you can see in above image, we need to put parameter name in 'Table' text box. But now we have 2 textbox rather having only one.
Are there some update in azure data factory pipeline published which show this additional thing and not the way it was previously.
Stored procedure is as below.
ALTER PROCEDURE [dbo].[Insert_SFl_Data]
(
@Passing [dbo].[STG_SFl] READONLY,
@SourceFileName NVARCHAR(500)
)
AS
BEGIN
INSERT INTO [dbo].[SFl]
([DateExtracted]
,[Country]
,[SourceFileName])
SELECT *, @SourceFileName FROM @Passing
END