column display current date

Rohit Kulkarni 441 Reputation points
2021-03-22T20:00:33.627+00:00

Hello team,

I want to copy the data from sql server table to synapse sql pool via dynamic query.

Source Destination Values
column 1 column1 ABC
column2 column2 123
column3 column3 BANGALORE
column4 column4 SYSDATE

For column 4 i need to display the sysdate on the fly. How it can be achieved .Please advise.

Reards
RK

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

Accepted answer
  1. Nandan Hegde 33,241 Reputation points MVP
    2021-03-23T03:29:20.13+00:00

    Hey ,
    Below are the ways to achieve it:

    1. In the source itself update your query as
      Select column1,column2,column3,getdate() as column3

    2) https://learn.microsoft.com/en-us/answers/questions/318521/how-do-i-pass-a-static-value-as-source-column-in-c.html
    wherein add additional columns with static values in copy activity.
    You can use utcnow() function


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.