I have SQL dynamic query with a "?" that needs to be replaced with pipeline parameters. The fetched query has a question mark "?" how to replace that?
I tried passing the parameters but ADF doesn't recognize the ? symbol and the correct parameters are not passed
concat
function to concatenate the query with your dynamic content i.e., your parameters or you can use string interpolation (@{...}
).@{...}
(string interpolation) wherever required:Declare @SourceID int, @datafileid int;
Set @SourceID=@{pipeline().parameters.source_id};
Set @datafileid=@{pipeline().parameters.datafield}
set variable
activity and use that variable in place of query.