Insert Value via Visual Expression by Passing the Parameter ADF

Kunal Bhatia 71 Reputation points
2022-05-11T19:16:30.937+00:00

How to Insert Value via Visual Expression by Passing the Parameter ADF.
I am looking for Update Statement -- Example Like : Update 'TableName' Set 'ColumnName' = 1234 where Id is null .

I want to Set the Value when I pass the Parameter 1234 during Run time , it will add there in Update Statement to set the value.

I am trying to Use this -> "Update LOG_SEC_IDENTIFIER_New Set FirmHubId = '{$FirmHubID}' where FirmHubId is Null"

Need Help on this in ADF -- @Nasreen Akter

201117-image.png

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

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,631 Reputation points Microsoft Employee Moderator
    2022-05-13T17:13:07.767+00:00

    Hi @Kunal Bhatia ,

    Thank you for posting query in Microsoft Q&A Platform.

    Use your UPDATE query expression as below.

    "Update dbo.persons set gender = '" + $genderValue + "'"  
    

    Kindly check below example where I used UPDATE query in post sql script which takes parameter as value. I ran this and worked good for me.
    201872-image.png

    Hope this helps. Please let us know if any further queries. Thank you.

    ----------------

    Please consider hitting Accept Answer. Accepted answers help community as well.


Your answer

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