---
title: How to Connect SQLite to Google Sheets – Stream Live Lightweight Database Data
description: "[![](https://querystreams.com/wp-content/uploads/2025/09/iconsqlite40x40.png)](https://querystreams.com/database-integrations/sqlite/)SQLite[![](https://querystreams.com/wp-content/uploads/2026/11/qs-logo-mark-120.png)](https://my.querystreams.com)Query Streams[![](https://querystreams.com/wp-content/uploads/2025/09/icons8-google-sheets-40.png)](https://querystreams.com/features/databases-in-excel-and-google-sheets/)Google Sheets SQLite → Google Sheets · with Query Streams With Query Streams, your SQLite .db file stays where it sits: the Agent opens it read-only each time you refresh, nothing is copied, and the rows land live in…"
url: "https://querystreams.com/zh/docs/how-to-connect-sqlite-to-google-sheets/"
updated: "2026-11-09"
category: Data Connector Setup
tags:
  - automation
  - "database-integration"
  - google sheets
  - "no-code"
  - sqlite
---

# How to Connect SQLite to Google Sheets – Stream Live Lightweight Database Data

[![](https://querystreams.com/wp-content/uploads/2025/09/iconsqlite40x40.png)](https://querystreams.com/database-integrations/sqlite/)SQLite[![](https://querystreams.com/wp-content/uploads/2026/11/qs-logo-mark-120.png)](https://my.querystreams.com)Query Streams[![](https://querystreams.com/wp-content/uploads/2025/09/icons8-google-sheets-40.png)](https://querystreams.com/features/databases-in-excel-and-google-sheets/)Google Sheets

SQLite → Google Sheets · with Query Streams

With Query Streams, your SQLite .db file stays where it sits: the Agent opens it read-only each time you refresh, nothing is copied, and the rows land live in Google Sheets through the Query Streams add-on. About ten minutes the first time.

[Start free](https://my.querystreams.com)

![Isometric database cylinder linked by one line to a spreadsheet on a shared plinth](https://querystreams.com/wp-content/uploads/2026/11/hero-connectors-t1-720.webp)

 **Stuck at any point? Just ask us.** Open [Support](https://my.querystreams.com/support) in Query Streams (top-right menu → Support) and send us a message. Real people read it, and “I don’t know what this screen is asking for” is a perfectly good question. More for SQLite[![](https://querystreams.com/wp-content/uploads/2026/08/qs-doc-sqlite-folder.png)Folder of SQLite files?](https://querystreams.com/docs/combine-multiple-sqlite-database-files/)[![](https://querystreams.com/wp-content/uploads/2026/08/qs-qb-icon-scheduled-sync-150x150.png)Sync on a schedule](https://querystreams.com/docs/google-sheets-sqlite-integration/)[![](https://querystreams.com/wp-content/uploads/2025/09/icons8-excel-40.png)Excel](https://querystreams.com/docs/how-to-connect-sqlite-to-microsoft-excel/)[![](https://querystreams.com/wp-content/uploads/2026/05/icons8-claude-48.png)Claude (MCP)](https://querystreams.com/docs/how-to-connect-sqlite-to-claude-via-mcp/)[![](https://querystreams.com/wp-content/uploads/2025/12/icons8-rest-api-64.png)REST API](https://querystreams.com/docs/expose-sqlite-as-rest-api/)[![](https://querystreams.com/wp-content/uploads/2026/08/database.png)Setup trouble?](https://querystreams.com/docs/where-the-agent-can-read-files-from/)

## What you’ll end up with

![SQLite logo](https://querystreams.com/wp-content/uploads/2025/09/iconsqlite40x40.png)A Google Sheet showing the live results of a SQL query against your SQLite file, with a button that pulls the latest rows whenever the data changes. Like this:

 ![](https://querystreams.com/wp-content/uploads/2025/09/icons8-google-sheets-40.png) Sales Saved to DriveFileEditViewInsertFormatDataTools**Extensions**Help

|  | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 1 | customer_id | first_name | last_name | country | total |
| 2 | 1042 | Maria | Alvarez | USA | 1,284.50 |
| 3 | 1043 | Daniel | Okafor | USA | 612.00 |
| 4 | 1047 | Priya | Nair | USA | 2,090.75 |
| 5 | 1051 | Thomas | Berg | USA | 338.20 |
| 6 | 1056 | Lucía | Ferreira | USA | 1,455.00 |
| 7 | 1060 | Kenji | Sato | USA | 874.10 |
| 8 |  |  |  |  |  |

![](https://querystreams.com/wp-content/uploads/2025/08/cropped-Transparent-01.png) Query StreamsConnection![](https://querystreams.com/wp-content/uploads/2025/09/iconsqlite40x40.png) My SQLite fileQueryUS customersRows6Last runjust now Run Query*+* **customers** *Sheet1*![](https://querystreams.com/wp-content/uploads/2025/09/iconsqlite40x40.png) Live from sales.db

SQLite databases are single files, usually ending in **.db**, **.sqlite**, **.sqlite3**. Google Sheets can’t open them at all, and the usual workaround is exporting a CSV and uploading it again every time the data changes. Query Streams skips that: a small helper program reads the file where it already sits, and a Google Sheets add-on asks it for the rows you want. The two do not need to be on the same computer. The file can be on the office computer and you can be anywhere: any browser on any device.

The Agent runs where it can open the file. Your sheet lives in Google’s cloud. Open it anywhere and the rows come to you.

## What you’ll need

### A Query Streams account

The Free plan is enough for this guide. Sign up at [my.querystreams.com](https://my.querystreams.com).

### The Agent on a computer that can open the file

A small program that runs in the background and reads the file when Google Sheets asks. Step 2 below shows where to get it.

![](https://querystreams.com/wp-content/uploads/2025/09/iconsqlite40x40.png)

### Your SQLite file

Know where it is, for example **C:\\Data\\sales.db** or **\\\\server\\share\\sales.db**. If it lives in OneDrive, Dropbox or Google Drive, make sure it is synced to the Agent’s computer.

**Which computer gets the Agent?** The one where the file is, or one that can open it from a network share (see [Reaching a file on a network share](#network-share) below). That computer needs to stay on. **Google Sheets can be anywhere**: it runs in your browser, so nothing at all gets installed where you read the data.

## Connect it in five steps

1. ### Create your account

   Go to [my.querystreams.com](https://my.querystreams.com) and sign up. Pick the **Free** plan. It is a real plan, not a trial, and it covers connecting your SQLite file and running queries from Google Sheets.
2. ### Install the Agent on a computer that can open the file ![](https://querystreams.com/wp-content/uploads/2026/03/icons8-windows-48.png)![](https://querystreams.com/wp-content/uploads/2026/03/icons8-apple-inc-48.png)![](https://querystreams.com/wp-content/uploads/2026/03/icons8-linux-48.png)
   Sign in, open [Download](https://my.querystreams.com/download), and install the Agent for your system on the computer where the file is, or on one that can open it from a network share. It takes a minute and starts on its own from then on.
   **Why a small program instead of a driver?** The Agent is one install for Windows, Mac or Linux (about 85 MB on Windows, a little over 100 MB on Mac and Linux) that runs quietly in the background. It makes one outbound, encrypted connection to Query Streams, the same way a browser does, so you open no firewall port and set up no VPN. The file stays where it is, and the rows travel to wherever you are, across the internet if need be. The only thing on your side is the add-on.
   The Download page shows **Your Access Key**. Paste it into the Agent when it asks, and wait for the badge to read **Connected to Query Streams**. That is the only thing you do on the Agent itself.
   Full walkthroughs if you want them: [Windows](https://querystreams.com/docs/installing-query-streams-agent-windows/), [Mac](https://querystreams.com/docs/installing-query-streams-agent-macos/), [Linux](https://querystreams.com/docs/installing-query-streams-agent-linux/).
3. ### Point it at your SQLite file

   Back in your browser, open [**Data Agents**](https://my.querystreams.com/data-agents) (under **Data** in the top menu). Your Agent is listed there. Click **Add connector**, choose **SQLite**, and fill in:

   **Connection name**
   : Any name you will recognise later, like Sales database.

   **Database File Path**
   : Where the SQLite file is: a path on the Agent's computer, like C:\\Data\\sales.db, or a network path, like \\\\server\\share\\folder\\sales.db, never a mapped drive letter such as S:. Use Browse to pick it.

   Click **Test connection**. When it reads **Connected**, click **Save**. The connection reaches your Agent within a few seconds.
    [Open Data Agents](https://my.querystreams.com/data-agents)
   **Test failed?** Usually the path has a typo, or it uses a mapped drive letter such as **S:**, which the Agent cannot see. Open the folder, copy the path from the address bar, and paste it in again. For a file on another computer, see [Reaching a file on a network share](#network-share) below.
4. ### See your data in Query Builder Optional

   You can look at your SQLite file before Google Sheets is involved at all. Open [**Query Builder**](https://my.querystreams.com/query-builder) in the portal and pick the connection you just made. The **Schema** tab lists your tables and columns, and clicking one puts its name in the editor, so you can write a query without remembering exact names. Click **Run** and the rows appear under **Results**. Query Builder is on every plan, Free included.

   On Business plans you can also ask Nova in plain English (“show me customers in the USA”) and it writes the SQL for you. When the query looks right, save it: from Personal Core up it shows in the add-on’s Saved Queries list, and on any plan you can copy the SQL into the next step.
5. ### Add Query Streams to Google Sheets

   Open any Google Sheet, go to **Extensions → Add-ons → Get add-ons**, search for **Query Streams**, and click **Install**. Or install it straight from [Query Streams on the Google Workspace Marketplace](https://workspace.google.com/marketplace/app/query_streams/76857227889). Google will ask you to allow the add-on; that is normal.

   Afterwards it is in every Google Sheet you open: a Query Streams icon in the side panel on the right, also listed under **Extensions**. There is no separate sign-in. It recognises the Google account you are already using, so that email needs to be the one on your Query Streams account.
6. ### Pull in your first table

   Click the Query Streams icon in the side panel on the right of the sheet (or find it under **Extensions**). Choose **Query Streamer** and pick the connection you just made.

   Type the query you want to run. This one pulls a few columns from a **customers** table:
    Example · SQL
   ```
   SELECT customer_id, name, city
   FROM customers
   ORDER BY name
   LIMIT 100;
   ```

   Under **Destination Sheet** pick the tab the rows should land in, then click **Run Query**. The rows land in that tab in a second or two. Click Run Query again any time the data has changed and the tab updates in place.

   **Don’t know SQL?** Build it in [Query Builder](#query-builder) first and paste it here, or pick it from Saved Queries if you saved it.

## Reaching a file on a network share

The Agent opens files as a background service, not as you, so a file on another computer needs one extra step. Which step depends on the computer the Agent runs on.

### Windows

Type the network path, like **\\\\server\\share\\folder**, never a mapped drive letter such as **S:**, which the Agent cannot see. If the share only lets in named people, click **Service identity** (the chip under the path) and store a login for that server: a company domain account, or an account made on the server itself with **Domain** left blank. The Agent then signs in to that server and reads the file there, and every connector on that Agent that reads the same server must use the same login. Without a login, it reads as its own service account, which a company domain sees as the computer itself. [Step by step on Windows](https://querystreams.com/docs/where-the-agent-can-read-files-from/#share-windows)

### Linux

Share logins stored in the Portal are not used on Linux: an administrator mounts the share on the Agent’s computer first, in a folder under **/mnt** or **/media**, because the Agent’s service cannot see **/home** or **/run/user**. In the connector, keep the **\\\\server\\share** path, which the Agent maps onto the mount, or type the mount path instead, such as **/mnt/fileserver-shared/Accounts**. [How to mount a share on Linux](https://querystreams.com/docs/where-the-agent-can-read-files-from/#share-linux)

### Mac

Share logins stored in the Portal are not used on a Mac: mount the share first from Terminal with **sudo**, in a folder under **/Volumes**, so the Agent’s background service can see it. In the connector, keep the **\\\\server\\share** path, which the Agent maps onto the mount, or type the mount path instead, such as **/Volumes/fileserver-shared/Accounts**. [How to mount a share on a Mac](https://querystreams.com/docs/where-the-agent-can-read-files-from/#share-macos)

If the test cannot get to the share, look for these words in its result: **unreachable** means the Agent’s computer got no answer from the server. On Linux or a Mac, **not mounted** means the share still has to be mounted, and that message includes the exact mount command for your server.

**SQLite file on a share?** Leave **Read-Only (Immutable)** ticked, as it is by default; reads then take a point-in-time view of the file without locks. SQLite cannot use its WAL mode over a network, so with that box unticked a WAL-mode database on a **\\\\server\\share** path is refused, and the test says it **is a WAL-mode SQLite database**.

### Test failed on a share?

A Windows Agent signs in to the file server itself, so its test result can also say:

| Message | Cause | Fix |
| --- | --- | --- |
| **Access denied for the agent’s service account** under the path, or **access denied** in the test result | The share lets in named people only, and the Agent’s own Windows account is not one of them. Or the login stored for that server may not read this share. | Click **Service identity** under the path and store a login that can read the share. If one is stored already, ask whoever runs the server to give that account read access. |
| **the credentials were refused** | The server turned the stored login down: a typo, the wrong domain, or a password changed since it was saved. | Click the account name under the path and type the login again; for an account made on the server itself, leave **Domain** blank. **were refused moments ago** means the Agent waits a minute before it tries that same login again, so the account is not locked out; saving a corrected password tries again straight away. |
| **Another connector on this agent already signs in to**, or **Windows already holds a sign-in to** | This Windows computer already signs in to that server as a different account, through another connector or another program. Windows allows one account per server. | Store the login the other connector uses, or change it on every connector that reads that server. After **Windows already holds a sign-in**, the rest of the message says which account it is and what to do. |
| **This agent build cannot sign in to** | The Agent is an older version that cannot use stored share logins. | Update the Agent, then test again. |

**That’s it.** Your data is in the sheet and stays current with one click. Nothing left your network except the rows you asked for.

## Good next moves

- **Save the query** in the portal so you can run it again with one click, from Google Sheets or Excel.
- **Add a filter** such as a date range, so the same query can answer “this month” without editing.
- **Share the results** with a colleague. They see the rows, not your file and not your file path.

## Questions people ask

 Does your SQLite file have to be on the computer I use Sheets on?

No. Only the Agent has to be able to open your SQLite file. Google Sheets runs in your browser on any device. Open the add-on with the same Google account and your connections are there.

Does my database file get uploaded anywhere?

No. The Agent reads the file where it sits and sends only the rows your query asks for. The file stays where it is.

Can the file be in OneDrive, Dropbox or Google Drive?

Yes, as long as it is synced to the computer where the Agent runs, so the Agent sees it as an ordinary local file. Point the connection at the synced copy.

Does the Free plan really cover this?

Yes. Free is a plan you keep, not a trial that expires. See exactly what it includes on the [pricing page](https://querystreams.com/pricing/).

Does the sheet refresh by itself?

Click Run Query again whenever you want the latest rows. For a sheet that refreshes on a schedule without anyone pressing anything, set up an Automation in the Query Streams portal (Streams → Automation). It is on every plan.

 **Still stuck?** Open [Support](https://my.querystreams.com/support) in Query Streams and tell us which step you are on and what you see. We will get you connected. [Create your Free plan account](https://my.querystreams.com)[See what Free includes](https://querystreams.com/pricing/)

## Related guides

- [SQLite to Microsoft Excel](https://querystreams.com/docs/how-to-connect-sqlite-to-microsoft-excel/)
- [Microsoft Access to Google Sheets](https://querystreams.com/docs/how-to-connect-microsoft-access-to-google-sheets/)
- [DuckDB to Google Sheets](https://querystreams.com/docs/how-to-connect-duckdb-to-google-sheets/)
- [Microsoft SQL Server to Google Sheets](https://querystreams.com/docs/how-to-connect-microsoft-sql-server-to-google-sheet/)
- [Power Query for Google Sheets](https://querystreams.com/docs/power-query-for-google-sheets/)
- [All guides](https://querystreams.com/docs/)

 Query Streams also connects the same data to[Excel](https://querystreams.com/features/databases-in-excel-and-google-sheets/)[Claude, Cursor and ChatGPT](https://querystreams.com/features/mcp-server/)[a REST API](https://querystreams.com/features/database-rest-api/)[and more](https://querystreams.com/features/)

Every guide for SQLite

- [![](https://querystreams.com/wp-content/uploads/2025/09/icons8-excel-40.png)Excel](https://querystreams.com/docs/how-to-connect-sqlite-to-microsoft-excel/)
- [![](https://querystreams.com/wp-content/uploads/2026/05/icons8-claude-48.png)Claude (MCP)](https://querystreams.com/docs/how-to-connect-sqlite-to-claude-via-mcp/)
- [![](https://querystreams.com/wp-content/uploads/2025/12/icons8-rest-api-64.png)REST API](https://querystreams.com/docs/expose-sqlite-as-rest-api/)
- [![](https://querystreams.com/wp-content/uploads/2025/09/icons8-google-sheets-40.png)Sync to Google Sheets](https://querystreams.com/docs/google-sheets-sqlite-integration/)
- [![](https://querystreams.com/wp-content/uploads/2026/01/icon-airtable.png)Sync to Airtable](https://querystreams.com/docs/airtable-sqlite-integration/)
- [![](https://querystreams.com/wp-content/uploads/2026/01/icon-smartsheet.png)Sync to Smartsheet](https://querystreams.com/docs/smartsheet-sqlite-integration/)
- [![](https://querystreams.com/wp-content/uploads/2026/01/icon-baserow.png)Sync to Baserow](https://querystreams.com/docs/baserow-sqlite-integration/)
- [![](https://querystreams.com/wp-content/uploads/2026/01/icon-seatable.png)Sync to SeaTable](https://querystreams.com/docs/seatable-sqlite-integration/)
- [![](https://querystreams.com/wp-content/uploads/2026/01/icon-anvilworks.png)Sync to Anvil.works](https://querystreams.com/docs/anvil-works-sqlite-integration/)

Not quite your setup?

- Got a folder of SQLite files instead of one? SQLite Folder merges tables that share a name into one table and tags every row with the file it came from → [SQLite Folder](https://querystreams.com/docs/combine-multiple-sqlite-database-files/)

Setup trouble?

- Agent says the file or folder does not exist, or access is denied? Mapped drives, network shares, OneDrive and Linux home folders each need one fix → [Where the Agent can read files from](https://querystreams.com/docs/where-the-agent-can-read-files-from/)
- Agent shows Offline, or Test connection and Browse are greyed out? Check that the Agent is online → [Is the Agent online?](https://querystreams.com/docs/is-the-agent-online/)
