So far, you have learned to load data into KBC manually and via a GoogleDrive extractor. Let’s now load data from an external database with the help of the Snowflake Database extractor (the procedure is same for all our database extractors.
We will use our own sample Snowflake database, so do not worry about having to get database credentials from anyone.
Start by going into the Extractors section of KBC and create a new extractor.
Find Snowflake. You can use the search feature to find it quickly.
Similarly to the GoogleDrive extractor, the Snowflake extractor can have multiple configurations. As each configuration represents a single database connection, we only need one configuration. Continue with Create New Configuration.
Name the configuration.
Now, set up credentials to the source database. Set
Test the credentials and save them.
For extracting tables from the database, add SQL queries. Each query produces a single table in Storage.
Each database query needs to have a name, SQL command and a target table in Storage.
One by one, create and save the following three queries:
SELECT * FROM account;with output table
SELECT * FROM user;with output table
SELECT * FROM opportunity;with output table
You will get the following configuration. Click on Run Extraction to load the data from the database into your tables in Storage.
Running the extractor creates a background job that
When a job is running, a small orange circle appears under Last runs, along with RunId and other info on the job. Green is for success, red for failure. Click on the indicator, or the info next to it, for more details.
Once the job is finished, click on the names of the tables to inspect their contents. In case you had loaded the tables manually before, their contents will not change at all. The extractor overwrites the table contents, and the manually loaded CSV files match the contents of the sample database.
Now when you know how to use the Snowflake extractor, continue with the rest of the tutorial.