Gegevens verkrijgen van een SQLite bestand in Excel
Open je SQLite-database in Excel en vernieuw deze wanneer je maar wilt. Geen ODBC-stuurprogramma, geen exporteren naar CSV, geen macro's. De eerste keer duurt het ongeveer tien minuten en het gratis abonnement dekt dit.
Wat je uiteindelijk overhoudt
Een werkblad dat de live resultaten van een SQL-query op uw SQLite-bestand weergeeft, met een knop waarmee de meest recente rijen worden opgehaald zodra de gegevens wijzigen. Zoals dit:
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | klant_id | voornaam | achternaam | land | totaal |
| 2 | 1042 | Maria | Alvarez | VS | 1,284.50 |
| 3 | 1043 | Daniël | Okafor | VS | 612.00 |
| 4 | 1047 | Priya | Nair | VS | 2,090.75 |
| 5 | 1051 | Thomas | Berg | VS | 338.20 |
| 6 | 1056 | Lucía | Ferreira | VS | 1,455.00 |
| 7 | 1060 | Kenji | Sato | VS | 874.10 |
| 8 |
SQLite-databases zijn afzonderlijke bestanden, die meestal eindigen op .sql. .db, .sqlite, .sqlite3Excel kan ze niet zelf openen, en de gebruikelijke oplossing is het installeren van een ODBC-stuurprogramma en het worstelen met verbindingsreeksen. Query Streams slaat dat over: een klein hulpprogramma leest het bestand op de locatie waar het zich al bevindt, en een Excel-invoegtoepassing 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: op uw laptop thuis, op de computer van een collega aan de andere kant van het land, of in Excel via het web.
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 Excel 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. Excel kan overal zijn.Je kunt Excel gebruiken op je laptop thuis, op de computer van een collega aan de andere kant van het land, of via de webversie. Er hoeft verder niets geïnstalleerd te worden waar Excel draait.
Verbind het in vijf stappen.
-
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 Excel.
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-in.
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.
-
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.
-
See your data in Query Builder Optioneel
You can look at your SQLite file before Excel 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-in’s Saved Queries list, and on any plan you can copy the SQL into the next step.
-
Querystreams toevoegen aan Excel
Ga in Excel naar Invoegen → Invoegingen ophalen, zoeken naar Query-stromenen klik ToevoegenOf open het direct vanuit Querystreams op Microsoft AppSourceEr verschijnt een knop 'Query Streams' in het lint. Meld u aan met hetzelfde account.
Werkt in Excel voor Microsoft 365 op Windows en Mac, en in Excel op het web.
-
Schuif je eerste tafel aan
Klik op de knop Query Streams en kies Een query streamenen 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 · SQLSELECT customer_id, name, city FROM customers ORDER BY name LIMIT 100;
Onder Bestemmingsblad kiezen Maak een nieuw werkblad aanDruk vervolgens op de afspeelknop (de ▶-pijl). De rijen verschijnen binnen een seconde of twee in Excel. Druk er nogmaals op wanneer de gegevens zijn gewijzigd en het werkblad 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.
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:
| Bericht | Oorzaak | Repareren |
|---|---|---|
| Access denied for the agent’s service account under the path, or Toegang geweigerd 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. | 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 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, of 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. |
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 kunt u het vervolgens met één klik opnieuw uitvoeren, vanuit Excel of Google Sheets.
- 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 Excel op dezelfde computer staan als je SQLite-bestand?
No. Only the Agent has to be able to open your SQLite file. Excel can be on any computer with an internet connection, including Excel on the web and Excel on a Mac. Sign in to the add-in with your 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.
Werkt het ook met Excel voor Mac?
Ja. Excel voor Microsoft 365 op Mac en Windows, en Excel op het web.
Gerelateerde handleidingen
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
- Wil je de Excel-werkmappen zelf opvragen? Excel Folder leest een map met werkmappen als tabellen → Excel 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?

