I have created a copy activity that copies data from an on premise database to a Azure SQL Database.
I need to modify dynamiccaly the query, so it takes a range of dates, with these two variables:
inidateenddate
Which I want to use inside the where clause, but I don't know how to reference the variables. I tried this but it doesn't work:
SELECT * FROM tableOnPrem
WHERE dateOnPrem BETWEEN '@variable('inidate')' AND '@variable('enddate')'
How can this be achieved?