In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Execute a SQL query generated dynamically within Alteryx

Biswarun
8 - Asteroid

I have a configuration table in MS SQL Server (local). Based on values of certain columns in that table, I need to load data from another table in the same server.

 

So, I read in the configuration table via the input tool. Then, I used the formula tool of Alteryx to produce a SQL query string in a new column. This string is nothing fancy and will ALWAYS reduce to "SELECT * FROM [Variable] WHERE [VARIABLE]". Now, how to execute this query?

 

I am new to blending Alteryx with DB and will appreciate help.

1 REPLY 1
Biswarun
8 - Asteroid

Ah - the good old dynamic input tool came to my rescue. Threw in a dummy query and replaced the entire query from my column.

Labels
Top Solution Authors