DataLab Docs
  • What is DataLab?
  • Work
    • Creating a workbook
    • Sharing a workbook
    • Managing a workbook
    • Code cell
      • Working with packages
    • Text cell
      • Including images
    • SQL cell
      • SQL scenarios
      • Parameterize your SQL query
    • Explore Data cell
    • Chart cell
      • Configuring your chart
      • Pivot charts
      • Migration guide
    • AI Assistant
    • Version history
    • Scheduled runs
    • Hiding and showing cells
    • Long-running cells
    • Report view
    • Environment variables
    • Git and GitHub
  • Connect to Data
    • Connect your data to DataLab
    • Sharing a Data Source
    • Airtable
    • Amazon Athena
    • Amazon S3
    • Databricks
    • Dropbox
    • Files
    • Google Drive
    • Google BigQuery
    • Google Sheets
    • MariaDB
    • Microsoft SQL Server
    • MongoDB
    • MotherDuck
    • MySQL
    • Oracle Database
    • PostgreSQL
    • Redshift
    • Snowflake
    • Supabase
  • Guides
    • Publish a notebook
    • Importing data from flat files
    • Resizing plots
    • Show Bokeh and Pyvis plots
  • Resources
    • Pricing
    • Manage group settings
    • Reporting for Group Admins
    • DataLab for education
    • Technical requirements
    • Addressing slow code
    • Address R vulnerability
    • Get help
Powered by GitBook
On this page
  • Copy your MotherDuck service token
  • Set up a MotherDuck connection
  • Query the database

Was this helpful?

  1. Connect to Data

MotherDuck

PreviousMongoDBNextMySQL

Last updated 1 year ago

Was this helpful?

Copy your MotherDuck service token

Follow the steps in of the MotherDuck documentation.

Set up a MotherDuck connection

When inside a workbook, click View > Databases, then click the + icon and follow the on-screen instructions.

The "Database Name" configuration is optional. If you configure it, the connection will by default connect to that database, but other databases are still accessible.

Query the database

You can now query your MotherDuck database with a SQL cell. Select it in the Select source dropdown in the top left corner of a SQL cell.

this section