How can I accept and process output form stored procedure in azure data dactory ?

Palash Mathur 60 Reputation points
2024-07-26T12:16:43.0233333+00:00

I am trying to create a pipeline in the Azure data factory and want to process the output returned by my stored procedure.
Till now I am able to successfully connect to my stored procedure in azure SQL database.

This is the error I am getting while doing this:

@string(activity('Stored procedure1').output.firstrow.result)  

 

This is my stored procedure:

CREATE PROCEDURE [jobs].[ADF]

@Input NVARCHAR(``100``),

@Result NVARCHAR(``100``) OUTPUT

AS

BEGIN

PRINT @Input

SET @Result='DummyString'

END;

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,840 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nandan Hegde 32,416 Reputation points MVP
    2024-07-26T13:23:21.6666667+00:00

    You need to use script activity or Lookup activity for capturing the output of stored procedure

    STored procedure activity doesnt return any output values and is just to trigger an SP

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.