Categorieën bekijken

Hoe verbind je SQLite met Google Sheets – stream live gegevens uit een lichtgewicht database

Verbinden van SQLite met Google Sheets

Gegevens verkrijgen van een SQLite bestand in Google formulieren

Open je SQLite-database in Google Sheets en vernieuw deze wanneer je maar wilt. Geen CSV-uploads, geen Apps Script, geen kopiëren en plakken. De eerste keer duurt het ongeveer tien minuten en het is inbegrepen bij het gratis abonnement.

Ongeveer 10 minuten Geen programmeerkennis vereist Het bestand blijft op zijn plaats. Elke browser, elk apparaat
Loop je ergens vast? Vraag het ons gerust. Open Ondersteuning Ga naar Query Streams (menu rechtsboven → Ondersteuning) en stuur ons een bericht. Echte mensen lezen het, en "Ik weet niet wat er op dit scherm wordt gevraagd" is een volkomen terechte vraag.

Wat je uiteindelijk overhoudt

SQLite-logoEen Google Sheet die de live resultaten van een SQL-query op je SQLite-bestand weergeeft, met een knop waarmee je de meest recente rijen kunt ophalen zodra de gegevens wijzigen. Zoals dit:

SQLite-databases zijn afzonderlijke bestanden, die meestal eindigen op .sql. .db, .sqlite, .sqlite3Google Sheets kan ze helemaal niet openen, en de gebruikelijke oplossing is om een CSV-bestand te exporteren en dat telkens opnieuw te uploaden wanneer de gegevens wijzigen. Query Streams slaat dat over: een klein hulpprogramma leest het bestand op de locatie waar het zich al bevindt, en een Google Sheets-add-on vraagt het programma om de gewenste rijen. De twee hoeven niet op dezelfde computer te staan. Het bestand kan op de kantoorcomputer staan en u kunt zich overal bevinden: elke browser op elk apparaat.

WAAR HET BESTAND ZICH BEVINDTkantoorcomputer, een server of die thuisUw SQLite-bestandsales.db · blijft hierQuery Streams Agentwhere it can open the fileQuery-stromenversleutelde linkvia internet · alleen resultatenWAAR JE OOK BENTElke browser: laptop, tablet, telefoon, ChromebookGoogle formulierenrijen worden in een vel geleverd
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.

Wat je nodig hebt

Een Query Streams-account

Het gratis abonnement is voldoende voor deze handleiding. Meld je aan via mijn.querystreams.nl.

The Agent on a computer that can open the file

Een klein programmaatje dat op de achtergrond draait en het bestand leest wanneer Google Sheets daarom vraagt. Stap 2 hieronder laat zien waar je het kunt vinden.

Uw SQLite-bestand

Weet bijvoorbeeld waar het is. C:\Data\sales.db of \\server\share\sales.db. If it lives in OneDrive, Dropbox or Google Drive, make sure it is synced to the Agent’s computer.

Welke computer krijgt de 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 below). That computer needs to stay on. Google Sheets kan overal zijn.Het draait in je browser, dus er wordt helemaal niets geïnstalleerd op de plek waar je de gegevens leest.

Verbind het in vijf stappen.

  1. Maak uw account aan

    Ga naar mijn.querystreams.nl en meld je aan. Kies de Gratis plan. Het is een echt plan, geen proefversie, en het omvat het koppelen van je SQLite-bestand en het uitvoeren van query's vanuit Google Sheets.

  2. Install the Agent on a computer that can open the file

    Aanmelden, openen 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.

    Waarom een klein programma in plaats van een 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.

    De downloadpagina toont Uw toegangssleutelPlak het in de Agent wanneer daarom wordt gevraagd en wacht tot de badge is weergegeven. Verbonden met querystreamsDat is het enige wat je op de agent zelf doet.

    Complete walkthroughs zijn beschikbaar als je die wilt: Windows, Mac, Linux.

  3. Wijs het naar je SQLite-bestand

    Ga terug naar je browser en open... Data Agents (onder Gegevens (in het bovenste menu). Uw makelaar staat daar vermeld. Klik Connector toevoegen, kiezen SQLiteen vul in:

    Verbindingsnaam
    Elke naam die je later zult herkennen, zoals 'Verkoopdatabase'.
    Database-bestandspad
    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.

    Klik op TestverbindingWanneer er staat Aangesloten, klik SlaDe verbinding bereikt uw agent binnen enkele seconden.

    Test mislukt? 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 onderstaand.

  4. See your data in Query Builder Optioneel

    You can look at your SQLite file before Google Sheets is involved at all. Open Querybouwer 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 Ren and the rows appear under Resultaten. 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. Querystreams toevoegen aan Google Sheets

    Open een Google Sheet en ga naar Extensies → Add-ons → Add-ons downloaden, zoeken naar Query-stromenen klik InstallerenOf installeer het direct vanaf Querystreams op de Google Workspace MarketplaceGoogle zal je vragen om de add-on toe te staan; dat is normaal.

    Daarna is het in elk Google Sheet dat u opent te vinden: een Query Streams-pictogram in het zijpaneel aan de rechterkant, ook vermeld onder UitbreidingenEr is geen aparte aanmelding nodig. Het herkent het Google-account dat je al gebruikt, dus het e-mailadres moet hetzelfde zijn als het e-mailadres dat aan je Query Streams-account is gekoppeld.

  6. Schuif je eerste tafel aan

    Klik op het pictogram 'Query Streams' in het zijpaneel aan de rechterkant van het werkblad (of zoek het onder Uitbreidingen). Kiezen Query Streamer en kies de verbinding die je zojuist hebt gemaakt.

    Typ de query die u wilt uitvoeren. Deze haalt een paar kolommen op uit een klanten tafel:

    Voorbeeld · SQL
    SELECT customer_id, name, city FROM customers ORDER BY name LIMIT 100;

    Onder Bestemmingsblad Selecteer het tabblad waar de rijen moeten komen te staan en klik vervolgens. Query uitvoerenDe rijen verschijnen binnen een seconde of twee in dat tabblad. Klik op 'Query uitvoeren' wanneer de gegevens zijn gewijzigd en het tabblad wordt direct bijgewerkt.

    Weet je niet wat SQL is? Build it in Querybouwer 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

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 of /media, because the Agent’s service cannot see /home of /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

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

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? Vertrekken 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:

BerichtOorzaakRepareren
Access denied for the agent’s service account under the path, or Toegang geweigerd in the test resultThe 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.Klik op 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 refusedThe 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, of Windows already holds a sign-in toThis 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 toThe Agent is an older version that cannot use stored share logins.Update the Agent, then test again.

Dat is alles. Uw gegevens staan in het spreadsheet en worden met één klik bijgewerkt. Er is niets van uw netwerk verwijderd, behalve de rijen die u hebt opgevraagd.

Goede volgende stappen

  • Sla de zoekopdracht op. in het portaal, zodat je het met één klik opnieuw kunt uitvoeren, vanuit Google Sheets of Excel.
  • Voeg een filter toe zoals een datumbereik, zodat dezelfde zoekopdracht "deze maand" kan antwoorden zonder aanpassingen.
  • Deel de resultaten met een collega. Zij zien de rijen, niet je bestand en niet het bestandspad.

Vragen die mensen stellen

Moet mijn SQLite-bestand op dezelfde computer staan als waarop ik Sheets gebruik?

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.

Wordt mijn databasebestand ergens geüpload?

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

Kan het bestand zich in OneDrive, Dropbox of Google Drive bevinden?

Ja, zolang het maar gesynchroniseerd is met de computer waarop de agent draait, zodat de agent het als een gewoon lokaal bestand ziet. Richt de verbinding op de gesynchroniseerde kopie.

Is dit echt inbegrepen bij het gratis abonnement?

Ja. Gratis is een abonnement dat je behoudt, geen proefperiode die verloopt. Bekijk precies wat het inhoudt op de website. prijspagina.

Wordt het werkblad automatisch vernieuwd?

Klik nogmaals op 'Query uitvoeren' wanneer u de meest recente rijen wilt ophalen. Voor een spreadsheet die automatisch wordt vernieuwd volgens een schema, zonder dat iemand iets hoeft te doen, kunt u een automatisering instellen in de Query Streams-portal (Streams → Automatisering). Deze functie is beschikbaar in alle abonnementen.

Zit je nog steeds vast? Open Ondersteuning Ga naar Query Streams en laat ons weten in welke stap u zich bevindt en wat u ziet. Dan zorgen wij ervoor dat u verbonden wordt.
Query Streams verbindt dezelfde gegevens ook metExcelClaude, Cursor en ChatGPTeen REST APIen meer

Elke gids voor SQLite

Is dit niet helemaal jouw situatie?

  • Heb je een map met SQLite-bestanden in plaats van één? SQLite Folder voegt tabellen met dezelfde naam samen tot één tabel en tagt elke rij met het bestand waar deze vandaan komt → SQLite Folder

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
  • Agent shows Offline, or Test connection and Browse are greyed out? Check that the Agent is online → Is the Agent online?
Geüpdatet op oktober 17, 2026

Mogelijk gemaakt door BetterDocs