Daten von einem abrufen DuckDB Datei in Excel
Öffnen Sie Ihre DuckDB-Datenbank in Excel und aktualisieren Sie sie, wann immer Sie möchten. Kein ODBC-Treiber, kein Export nach CSV, keine Makros. Die erste Einrichtung dauert etwa zehn Minuten und ist im kostenlosen Tarif enthalten.
Was am Ende dabei herauskommt
Ein Arbeitsblatt, das die Live-Ergebnisse einer SQL-Abfrage für Ihre DuckDB-Datei anzeigt, mit einer Schaltfläche, die bei jeder Datenänderung die neuesten Zeilen abruft. Zum Beispiel so:
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | kunden_id | Vorname | Nachname | Land | insgesamt |
| 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 |
DuckDB-Datenbanken sind einzelne Dateien, die üblicherweise die Endung . haben. .duckdbExcel kann diese Dateien nicht automatisch öffnen, und die übliche Lösung besteht darin, einen ODBC-Treiber zu installieren und mit Verbindungszeichenfolgen zu arbeiten. Query Streams umgeht diesen Umweg: Ein kleines Hilfsprogramm liest die Datei an ihrem Speicherort, und ein Excel-Add-In fragt die gewünschten Zeilen ab. Beide Programme müssen sich nicht auf demselben Computer befinden. Die Datei kann sich auf dem Bürorechner befinden, und Sie können sich überall befinden: auf Ihrem Laptop zu Hause, auf dem Rechner eines Kollegen im ganzen Land oder mit Excel im Web.
Was Sie benötigen
Ein Query Streams-Konto
Für diesen Leitfaden reicht der kostenlose Tarif aus. Melden Sie sich an unter mein.querystreams.de.
The Agent on a computer that can open the file
Ein kleines Programm, das im Hintergrund läuft und die Datei einliest, wenn Excel dazu auffordert. Schritt 2 unten zeigt, wo Sie es finden.
Ihre DuckDB-Datei
Wissen, wo es ist, zum Beispiel C:\Data\sales.duckdb oder \\server\share\sales.duckdb. If it lives in OneDrive, Dropbox or Google Drive, make sure it is synced to the Agent’s computer.
Welcher Computer erhält den Agenten? 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 kann überall seinOb auf Ihrem Laptop zu Hause, dem Rechner eines Kollegen am anderen Ende des Landes oder in Excel im Web – es muss nichts weiter installiert werden, wo Excel ausgeführt wird.
Verbinden Sie es in fünf Schritten
-
Erstellen Sie Ihr Konto
Gehen Sie zu mein.querystreams.de und melde dich an. Wähle die Kostenlos Es handelt sich um einen echten Plan, nicht um eine Testversion, und er beinhaltet die Verbindung Ihrer DuckDB-Datei und die Ausführung von Abfragen aus Excel heraus.
Install the Agent on a computer that can open the file



Anmelden, öffnen Herunterladen, 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.
Warum ein kleines Programm anstelle eines Treibers? 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.
Die Downloadseite zeigt Ihr ZugangsschlüsselFügen Sie es in das Feld des Agenten ein, wenn Sie dazu aufgefordert werden, und warten Sie, bis das Abzeichen gelesen wurde. Verbunden mit AbfrageströmenDas ist das Einzige, was Sie auf dem Agenten selbst tun.
Vollständige Komplettlösungen, falls gewünscht: Fenster, Mac, Linux.
-
Verweisen Sie auf Ihre DuckDB-Datei.
Zurück im Browser, öffnen Datenagenten (unter Daten (im oberen Menü). Ihr Agent ist dort aufgeführt. Anschluss hinzufügen, wählen DuckDBund füllen Sie Folgendes aus:
- Verbindungsname
- Ein beliebiger Name, den Sie später wiedererkennen werden, wie zum Beispiel die Vertriebsdatenbank.
- Datenbank-Dateipfad
- Where the DuckDB file (.duckdb or .db) is: a path on the Agent’s computer, or a network path, like \\server\share\folder\sales.duckdb, never a mapped drive letter such as S:. Use Browse to pick it.
Klicken Sie auf TestverbindungWenn es liest Verbunden, klicken Speichern SieDie Verbindung erreicht Ihren Agenten innerhalb weniger Sekunden.
Test fehlgeschlagen? 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 unten.
-
See your data in Query Builder Optional
You can look at your DuckDB file before Excel is involved at all. Open Abfrage-Generator 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 ausführen. and the rows appear under Ergebnisse. 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.
-
Füge Abfrageströme zu Excel hinzu
In Excel gehen Sie zu Einfügen → Add-Ins abrufen, suchen nach Abfrageströmeund klicken Sie HinzufügenOder öffnen Sie es direkt von Abfragestreams auf Microsoft AppSourceAuf dem Menüband wird eine Schaltfläche „Streams abfragen“ angezeigt. Melden Sie sich mit demselben Konto an.
Funktioniert in Excel für Microsoft 365 unter Windows und Mac sowie in Excel im Web.
-
Stellen Sie Ihren ersten Tisch auf
Klicken Sie auf die Schaltfläche „Streams abfragen“ und wählen Sie aus Streamen Sie eine Abfrageund wählen Sie die Verbindung aus, die Sie soeben hergestellt haben.
Geben Sie die Abfrage ein, die Sie ausführen möchten. Diese Abfrage ruft einige Spalten aus einer Tabelle ab. Bestellungen Tisch:
Beispiel · SQLSELECT order_id, customer_name, order_total FROM main.orders ORDER BY order_total DESC LIMIT 100;
Unter Zielblatt wählen Neues Tabellenblatt erstellenDrücken Sie anschließend die Wiedergabetaste (den Pfeil ▶). Die Zeilen werden innerhalb von ein bis zwei Sekunden in Excel angezeigt. Drücken Sie die Taste erneut, sobald sich die Daten geändert haben; das Tabellenblatt wird dann aktualisiert.
Sie kennen sich nicht mit SQL aus? Build it in Abfrage-Generator 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.
DuckDB file on a share? DuckDB allows one writer at a time, so the Agent cannot open a file that another program has open for writing; on a \\server\share path the test says it is open for writing by another program. Close it there, or point the connector at a file nobody is writing to. Every query reads the file across the network, so a large file answers more slowly than it would from a local disk.
Test failed on a share?
A Windows Agent signs in to the file server itself, so its test result can also say:
| Nachricht | Ursache | Fix |
|---|---|---|
| Access denied for the agent’s service account under the path, or Zugriff verweigert 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. | Klicken Sie auf 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, oder 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. |
Das war’s. Ihre Daten befinden sich in der Tabelle und bleiben mit einem Klick aktuell. Außer den von Ihnen angeforderten Zeilen hat nichts Ihr Netzwerk verlassen.
Gute nächste Schritte
- Abfrage speichern im Portal, sodass Sie es mit einem Klick erneut ausführen können, entweder aus Excel oder Google Sheets.
- Füge einen Filter hinzu wie beispielsweise ein Datumsbereich, sodass dieselbe Abfrage ohne Bearbeitung auch „diesen Monat“ beantworten kann.
- Ergebnisse teilen mit einem Kollegen. Dieser sieht die Zeilen, nicht Ihre Datei und nicht Ihren Dateipfad.
Fragen, die Menschen stellen
Muss Excel auf demselben Computer wie Ihre DuckDB-Datei installiert sein?
No. Only the Agent has to be able to open your DuckDB 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.
Wird meine Datenbankdatei irgendwo hochgeladen?
No. The Agent reads the file where it sits and sends only the rows your query asks for. The file stays where it is.
Kann die Datei in OneDrive, Dropbox oder Google Drive gespeichert sein?
Ja, solange die Datei mit dem Computer synchronisiert ist, auf dem der Agent ausgeführt wird, sodass der Agent sie als normale lokale Datei erkennt. Stellen Sie die Verbindung zur synchronisierten Kopie her.
Ist das im kostenlosen Tarif wirklich enthalten?
Ja. „Kostenlos“ ist ein dauerhafter Tarif, keine befristete Testphase. Die genauen Leistungen finden Sie hier: Preisseite.
Funktioniert es mit Excel für Mac?
Ja. Excel für Microsoft 365 auf Mac und Windows sowie Excel im Web.
Verwandte Leitfäden
Jeder Leitfaden für DuckDB
Nicht ganz Ihre Konfiguration?
- Haben Sie einen Ordner mit Parquet-Dateien anstelle einer DuckDB-Datenbankdatei? Der Parquet-Ordner liest alle Dateien als eine einzige Tabelle → Parquet Folder
- Möchten Sie die Excel-Arbeitsmappen selbst abfragen? Excel Folder liest einen Ordner mit Arbeitsmappen 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?

