Connecting Alteryx to Snowflake Using an Automation Account
This guide will help you connect Alteryx Designer and Server to Snowflake using your University of Pittsburgh Automation Account. Automation accounts are special accounts (prefixed with aa_
) provisioned for scheduling and automating Alteryx workflows.
Prerequisites
A University of Pittsburgh Automation Account - request one by contacting the Pitt IT HelpDesk
An Alteryx Designer licensed and installed, and some experience with the tool
Administrative privileges to install drivers if needed
Step 1: Install the Snowflake DSN-less ODBC Driver
Try that file to the left, or log into MyAlteryx. You may need to register if you have not visited before.
Click the download button for Drivers, and select Snowflake.
Download the Simba Snowflake driver.
After download, click the driver file to install.
Step 2: Create Snowflake Data Source in Alteryx Designer (2024.2.1.94)
Launch Alteryx Designer
Find File > Manage Connections, and click New, and find Snowflake
You’ll be prompted to answer a few questions. Use the values below…
Technology: Snowflake ODBC DSN-less with Simba
Data Source Name: PROD_SNOWFLAKE
Driver: Simba Snowflake ODBC Driver
Database: PROD_DB
Schema: Your choice! PUBLIC is a fine place to start.
Warehouse: PROD_GENERAL_WH
Role: PROD_<Your Username>
Save your Snowflake connection. Next, we’ll add your Automation Account credentials.
Step 3: Creating Credentials for your Automation Account
Click Credentials on the left menu of the Connection Manager window.
Click New to create the credential.
Enter the following values
Method: Username and password
Credential Name: <Your Automation Account e.g. AA_SCR18>
Click Save! Next we’ll join the credential to the data source so we can use it in a Quick Connect.
Note: if you are connecting to a lower environment with an automation account, the automation account has the environment prefix as well - e.g. QA_AA_SCR18
Step 4: Join the Credential to the Data Source
Return to the Data Sources tab in the Connection Manager, and click on the PROD_SNOWFLAKE data source we created previously.
Scroll to the bottom and find the Connections section. Click the “Connect Credential” button.
Select your credential and select “Link”
Your data source is now ready to connect in an Alteryx Workflow.
Step 5: Making the Connection
Drag a new Input Data tile to the workspace. Ensure “Use Data Connection Manger (DCM)” is selected, and click Set Up a Connection.
Select Data sources on the left, and select Snowflake | Quick Connect.
Click the PROD_SNOWFLAKE connection previously created, scroll to the bottom and identify your Automation Account credential, and click Connect.
You can now utilize the query builder tools and SQL editor to pull data from Snowflake
One last important thing! You must Synchronize your connections with the Alteryx Server before you can publish your Snowflake connected workflow. Open File > Manage Connections and find the Synchronize option on the left menu. Click on the Alteryx Server Gallery, and click Synchronize.
You can now publish your Alteryx workflow to Alteryx server and schedule it to run.
Step 6: Creating Connections for Bulk Loading to Snowflake (for Snowflake Hosting users)
Analytics power users and other data professionals who need to store data utilize the Snowflake Hosting service. Those users can utilize Alteryx to create and store reusable data sets in their own responsibility center controlled schema. Alteryx can take advantage of Snowflake’s bulk load capability to rapidly ingest data. To do so, additional connection types have to be configured.
Open File > Manage Connections, and click Data Sources. Create a new Data Source
Select the following values
Technology: Snowflake Bulk DSN-less with Simba (Local Staging User)
Data Source Name: PROD_SNOWFLAKE_BULK
Driver: Simba Snowflake ODBC Driver
Database: PROD_DB
Schema: You’ll need to select the schema name created for your responsibility center or project. You will need to have been authorized to be a member of the schema edit group for that schema.
Warehouse: PROD_GENERAL_WH
Role: PROD_<Your Account Name>
Save the Connection.
Scroll to the bottom of the screen, and find the Connections section. Click “Connect Credential” and add your Automation Account credential.
You can know use this PROD_SNOWFLAKE_BULK data source to create and manipulate tables in the specified schema, assuming permissions have been granted.
Be sure to select the Bulk option when writing out to Snowflake, in the Data Connections > Data Sources screen
Staging Method: Local
When prompted for the Bulk Connection window, select “Local” for the Staging Method, and click the “Set Up a Connection” button
The Connection Manager window will launch. Select PROD_SNOWFLAKE_BULK, and then scroll down and find your Automation Account Credential. Click the Connect button.
You can now write data to your designated Snowflake schema.
Best Practices for Automation Accounts
Keep your automation account password secure. You will be responsible for updating the password on an annual basis.
If you encounter issues, contact Pitt IT support.
Support
For help with setting up your automation account or troubleshooting Tableau-Snowflake connections, please submit a Pitt IT Help Request
Related content
Need help? Contact the Pitt IT Helpdesk