Video | Snowflake | Data engineering | Data prep

Load data into Snowflake using a SQL statement

Before I could demo row level security in Tableau, I had to get the sample data into Snowflake from scratch using nothing but a SQL statement.

Watch on YouTube
  • Snowflake database names can't contain spaces, so use underscores when creating one through the interface
  • If you don't own the database you need to set up the relevant role privileges before creating tables and inserting data
  • In the Snowflake worksheets you must specify the target database and schema in the top-right context before running SQL, or it will error
  • Highlighting just the SQL you want and clicking run is a safer habit than executing an entire script at once
  • You can preview loaded rows either via the preview data button or by right-clicking the table in the object explorer

Tim shows how to take a raw SQL script (table creation plus data inserts) and load it into Snowflake from scratch using nothing but the web interface, so you can stand up sample data for testing or demos.

He needed sample data in Snowflake to demo Tableau's row level security feature, starting with only a bundled SQL statement that creates several tables and inserts data into them.

The Breakdown
  1. Why load data this way 0:00

    When you're given a SQL script that creates and populates tables, you can load it straight into Snowflake yourself rather than relying on a pre-built database, which is useful whenever you need sample data for testing or demoing a feature.

  2. Create a dedicated database first 0:59

    Before running any SQL you need a database to load into; create one through the Snowflake interface, but note database names can't contain spaces, so use underscores instead.

  3. Set up privileges if it's not your database 2:00

    If you're not the sole owner of the database, you must set up the relevant role privileges first so you or your users can create tables and insert data — skip this only if you already have full access, as Tim does here.

  4. Point your worksheet at the right database and schema 2:41

    In the Snowflake worksheet you must explicitly select the target database and schema in the top-right context before running any SQL, otherwise the statement will error even if the SQL itself is correct.

  5. Run the table-creation SQL first 3:00

    Paste in and run the portion of the script that creates the table structure — this step must come before inserting data, since it just builds the empty framework with no rows yet.

  6. Highlight and run SQL in chunks, not the whole script 4:21

    Rather than executing an entire script at once, Tim's habit is to highlight just the section he wants (e.g. the insert statement for one table) and run that, which is a safer way to work through a large SQL file piece by piece.

  7. Insert the data 4:41

    Once the table exists, highlight and run the corresponding insert statement to load the actual rows; you can repeat this pattern for each table defined in the script.

  8. Verify the load 5:41

    Confirm data landed correctly either by refreshing the object explorer and using the preview data button, or by right-clicking the table and choosing preview data — both give you a quick look at the loaded rows.

Worth Knowing
  • Snowflake database names can't contain spaces — use underscores when creating one through the interface
  • If you don't own the database, set up role privileges before you can create tables or insert data
  • You must select the database and schema in the worksheet's top-right context before running SQL, or it errors out
Use It When

Reach for this whenever you've got a raw SQL script (sample data, a vendor demo file, a colleague's export) and need to stand it up in a fresh Snowflake database for testing, demos, or trying out a new feature.

How this Rollup was made provenance & method

A Rollup is drafted by AI from the video's transcript, then reviewed and edited by Tim. Everything used to produce this one is listed below — the model, the exact prompt, and the source video — so the process is transparent and reproducible.

Transcription
On-device — NVIDIA Parakeet v3 for recent videos, OpenAI Whisper large-v3 for earlier ones. The transcript never leaves the machine or gets published.
Drafting
Claude Sonnet 5 in the cloud, from that transcript.
Prompt
The exact Rollup prompt (v2) — the full system prompt, unedited.
Source video
Watch on YouTube
Drafted
5 July 2026 at 09:38
Reviewed & edited
5 July 2026 at 09:41 · by Tim Ngwena

Model + prompt + video is everything you'd need to recreate a Rollup like this yourself. The one thing we don't share is the transcript.

Rights. The video and its transcript are the property of TN Media Ltd. Unauthorised use or download is prohibited. © TN Media Ltd.