Skip to content
Keboola Docs

Load from a database

Load tables from an external database with the Snowflake data source connector, against a sample database that needs no credentials of your own.

How-to Going further

A side trip from Load data into Storage: a source behind credentials rather than a public URL. Every database connector Keboola has works this way, so walking one teaches all of them.

Before you start

Where you are you can load a public file already.

When you finish three tables in Storage, pulled out of a live database.

You need

  • A Keboola project. No project yet? Create or join a project.
  • Keboola’s sample Snowflake database, whose login is printed on this page.

What each tab needs

  • Prompt tab Kai, the Kai Agent button in the top bar, on supported stacks. A new Free Plan project has it from the start; elsewhere an organization admin turns it on once: Get started with Kai.
  • UI tab a browser.
  • CLI / API tab kbagent, connected to your project with write access.

Prompt, UI and CLI / API: three ways to do the same task, not three steps. Pick one tab below; later pages open on it.

In the chat, Kai asks before each change it makes (how approvals work), and most of it can be undone: if a step builds something else, say so in the same chat.

All three paths connect to the same place, a read-only database Keboola keeps for this walk. None of it is secret:

FieldValue
Host namekebooladev.snowflakecomputing.com
Username, Password, Database, SchemaHELP_TUTORIAL
WarehouseDEV

Database connectors are configured like any other data source (integration setup). Open Kai Agent in the top bar and say what you want connected, not what your credentials are:

Prompt
Set up a Snowflake data source connector against our sample database and load the OPPORTUNITY, ACCOUNT and USER tables into Storage.

Check: three new tables, and Kai names the bucket it put them in.

Three tables, in one bucket:

TableRows
OPPORTUNITY639
ACCOUNT275
USER28
  • The connection is refused. A typo in the host or the warehouse. All four of username, password, database and schema are the same word here, HELP_TUTORIAL, which is easy to read past. The UI has a Test Connection button for this; the CLI finds out when the job runs.
  • The job succeeds but a table is empty. The row is pointing at a table name that exists in a different schema. schema inside table is per row, not inherited from the connection.
  • You want the configuration back after deleting it. kbagent config delete moves it to the trash rather than destroying it, and prints the command that undoes it. The UI has the same trash, under Delete Configuration.
  • You need only new rows next time. That is incremental fetch, in Advanced Mode and in the row’s parameters. Database data sources covers it.

Next: Use a workspace →

Ask Kai

Hi, I'm Kai — Keboola's AI assistant for the docs. Ask me anything and I'll answer from the documentation and cite the pages I use.

Kai is an AI and can make mistakes. Check the sources it links.