JDBC connectivity to Snowflake is achieved in much the same way as is connectivity to other databases - via a JDBC driver. The Snowflake JDBC driver is deployed to QuerySurge Agents, and the Connection is set up using the Connection Extensibility feature of the QuerySurge Connection Wizard.
Setting up a QuerySurge Connection with the Snowflake JDBC Driver
A QuerySurge Snowflake Connection is set up using the Connection Extensibility feature of the QuerySurge Connection Wizard.
- Download the Snowflake JDBC driver. The driver download can be found here.
- Deploy the Snowflake JDBC driver jar to your Agent(s). The procedure for deploying a driver to a QuerySurge Agent is here (for Agents on Windows) and here (for Agents on Linux).
- Log into QuerySurge as a QuerySurge Admin user, and navigate to the Admin view. Steps for using the Connection Extensibility feature can be found here. To use the Connection Extensibility option in the Connection Wizard with the Snowflake driver, you'll need the following information:
- Driver Class:
- Connection URL (depending on region):
jdbc:snowflake://<account_name>.<region_id>.snowflakecomputing.com/?<connection_params>Note: Connection parameters, such as "warehouse" and "db" can be appended to the Connection URL. For more information, see this link.
- Driver Class:
- When you've entered your Connection information, the Connection Wizard will look like:
- If you have a test Query, feel free to enter it in order to verify that your Connection parameters are correct. Any query that returns a small amount of information is appropriate - one row is enough. You can use the Test Connection button if you've entered a Test Query:
The Connection Test gives a popup showing whether the Connection was successfully completed:
- Once you have the information entered and (optionally) verified with a Connection Test, click the Save button to save the Connection. You are now ready to use the Connection in a Query.