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 Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Pulling SQL Query From ODBC Input

Da_Norman
5 - Atom

Hi Everyone,

 

Is there a way to document a sql query utilized to pull a table from from a odbc connection in an input tool? Please see the attached image of where the select statement I am trying to add to my final report is located.

 
 

 

 

3 REPLIES 3
apathetichell
20 - Arcturus

Perform the query IN-DB. use dynamic output In-DB to capture the query.

 

or...

 

put input tool in a batch macro. send query in out workflow to control parameter. action tool 1) updates input data tool. action tool 2) - updates formula tool to create new column of query data.

TimN
13 - Pulsar

Hi,

Take a look at the Field Info Tool found in the Developer folder.  It gives metadata including source sql.

 

 

danilang
19 - Altair
19 - Altair

Hi @Da_Norman 

 

You can build the query in a formula tool or just put it in a Text input tool if it's static and pass it to a Dynamic input tool set to Replace a Specific string.  If you also use Pass a Field to the output, you can append the query to the results from the database.

 

Dan

 

 

Labels
Top Solution Authors