Snowflake
This guide will walk you through connecting Datawisp to your Snowflake databases. We assume that you have an existing Snowflake account which is already storing some data and that you are familiar with the basics of using Snowflake.
This guide requires that you have at least USERADMIN
permissions on your Snowflake account. If you do not have these permissions, or aren't sure, e.g. because someone else is administering the account, please send this guide to them.
To get started, log into your Snowflake account. Create a new SQL worksheet, then paste and run the following commands:
After successfully running these commands, grant permissions on the database you want to import to the newly created datawisp
role. You can either do this manually through the Snowflake UI or using SQL commands:
Now open a new browser tab or window and go to Datawisp. We are going to switch back and forth between Snowflake an Datawisp a few times.
Head over to the Data Sources page and press Import.
Select Database and change the Connection type to Snowflake.
Choose a Title for the datasource.
Then go back to Snowflake. Click on the button in the bottom left, then hover over Account. This pops up a second menu with all your Snowflake accounts. There, hover over the account you're logged in with (the one with the Checkmark). This pops up a third menu. There, in the top right corner, click the Copy account identifier button. Go back to Datawisp and paste this under Account Identifier.
Under Database, type the name of the database in Snowflake that you wish to import.
Under Username, type datawisp
.
Then click on the ALTER USER command under RSA Public Key.
Head back to Snowflake and run this command.
For security reasons, Datawisp always creates a new RSA key when you import a Snowflake database. Until you complete the import, this key does not leave your PC. This may cause problems in certain edge cases such as the following:
You send this guide to a colleague because you don't have
USERADMIN
privileges on Snowflake. Your colleague runs through all the steps, including the ALTER USER command at the end that sets the RSA key. Then your colleague sends the connection details to you. You fill in the data and press Connect. The connection fails because Datawisp attempts to connect with your key, but on Snowflake your colleague's key was registered.
Then go back to Datawisp and click Connect.
If everything worked, Datawisp will tell you that the connection to your BigQuery database was successful:
Last updated