Hi @Prajakta Sonawane ,
What about create a store procedure in the database first and then run the query via SSIS?
create table test0922( id int, Filename varchar(max), Filecontent varchar(max))
insert into test0922 values
(1, 'abc','how are you?'), (2, 'def', 'I am good') , (3, 'ghi', 'Good to know')
CREATE PROC outputdata
@id INT
AS
SELECT Filename+'.txt(content in the file:'+Filecontent+')' as filepatht FROM test0922
WHERE id>=@id
GO
And the you may store query to variables to pass the parameter like shown below.
Regards,
Zoe Hui
If the answer is helpful, please click "Accept Answer" and upvote it.