Hi, I'm looking for some assistance with setting up a basic connection to Snowflake using the Input tool and ODBC via a data connection configured on the Gallery.
I've tried searching the community but I'm struggling to find any directly relevant information. A lot of the KB articles appear to be redacted, possibly because they are no longer relevant to current versions of Alteryx/Snowflake.
My setup is as follows:
Alteryx version 2024.2
On the Gallery I have set up a data connection, let's call it MySnowFlakeConnection
I have assigned an ODBC string with the following format (I am aware that username/password is deprecated for SnowFlake. I just need to get this working as poc and then move to OAuth later)
ODBC:driver={SnowflakeDSIIDriver};server=myserver.region.azure.snowflakecomputing.com;uid=mySnowFlakeUserName;pwd=************;database=mySnowFlakeDatabase;schema=mySnowFlakeSchema;warehouse=mySnowFlakeWarehouse;role=mySnowFlakeRole
I have installed the Snowflake DSII Driver onto the Gallery server and my desktop running designer.
My issues are as follows:
When I attempt to add the connection to the Input tool, or any time I attempt to edit the SQL (bring up the SQL editing dialogue) it takes in excess of 20 minutes for the dialogue to appear. I can live with this but it doesn't seem correct?
When I attempt to run a query I get the following error:
Error: Input Data (1): Error SQLExecute: No active warehouse selected in the current session. Select an active warehouse with the 'use warehouse' command.
I have been told that I need to execute a USE <WarehousName> command to bring the warehouse online, but I can't figure out where to put that command? It isn't recognised if I add it to the SQL code or if I put it in the "Pre SQL statement" field?
I have successfully managed to run a query previously but I can only assume that for whatever reason the Warehouse was running at that point and isn't running now?
Any assistance gratefully received. If I need to take a different approach to this then so be it but if I can get the above "simple" approach working with a few tweaks that would be all I need for now.
Note that the next step would be publishing the poc workflow to the Gallery and have it run unattended so I need a solution that allows for that to happen.
Regards,
Paul