<Help needed>How can I read a txt/sql file into one cell?

Hi,
how can I read a txt/sql file into one cell, so that I can change it to variable then flow to the DB reader, as I want to manage all SQL in files then when I have changes, all related workflow is changed.

Hi,

Yes you’re exactly right. If you’re maintaining a list of column names in an Excel file (as shown in your screenshot), your goal is to dynamically construct a SQL query like:

SELECT SwifferDate, FiscalYear, ShipToPartyID, …
FROM YourTable

Please find attached flow showing my approach. If you have any question, please feel free.

SQL_ColumnListExample.xlsx (13.2 KB)
SQL TXT.knwf (16.1 KB)

Best,

Alpay

1 Like

@cuimaple you could take a look at these two older examples

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.