We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to migrate on premises multiple SQL database tables to snowflake by creating pipeline.

Puneet13
8 - Asteroid

I’m working on designing a Batch Macro in Alteryx to automate the migration of multiple tables from an on-premises SQL database to Snowflake. My goal is to store all table names in a single Text Input, dynamically execute a query for each table, and load the results into corresponding tables in Snowflake. Despite several attempts, I haven’t been able to get the macro to function as intended. Could someone guide me through the correct design or share best practices for implementing this workflow? and i m not able to share the sample workbook as company restrictions.Workflow Snapshot.png

 

 

9 REPLIES 9
caltang
17 - Castor
17 - Castor

Your concept is right, but you are building a batch macro incorrectly. You are executing an entire table's worth of paths into one dynamic input which takes in a dummy or first path, and then writes to Snowflake for that single table's worth of values.

 

To fix this, you need to implement the batch macro AND a different workflow to use that batch macro to then get you your data into the format you need BEFORE you load it into Snowflake.

 

This guide illustrates: https://knowledge.alteryx.com/index/s/article/The-Ultimate-Input-Data-Flowchart-1583459854309 

 

Now, once you solve that batching process, you need to think about your Snowflake output. You can write the output and create the table / upsert etc AFTER the output of the batch macro in your other workflow as a one shot thing. So you don't really need to have the control parameter or action the final output tool per se.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Puneet13
8 - Asteroid

HI Just wanted to know how this run with multiple SQL table put in Text input and call it using dynamic input and them output to the snowflake, if you can help share with me some sample. 

caltang
17 - Castor
17 - Castor

I just told you what you were doing incorrectly and how you can do it, plus a concept guide was linked to you @Puneet13 

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Puneet13
8 - Asteroid

can somebody share the sample workflow where multiple sql table from database put in snowflake.

Puneet13
8 - Asteroid

can you please help and share the sample workflow it would be a great help

apathetichell
20 - Arcturus

Hey @Puneet13 --- sorry -- no license - but try it yourself -- and let us know where you are hitting an issue. Also--- reminder - mark the solution provided by the other poster as the solution - not your own. I noticed that both times you've accepted solutions - you've accepted your own solution not the solution provided by the other poster. Hopefully unintentional because that's a jerk move.

Puneet13
8 - Asteroid

Its done, i have achieved it using batch macro with directory and formula tool

apathetichell
20 - Arcturus

Updating prior comment:

I've noticed that everytime you've accepted a solution - you've accepted your own solution not the solution provided by another poster. That's a jerk move.

 

Labels
Top Solution Authors