Obtenga datos de un SQLite archivo en Excel
Abre tu base de datos SQLite en Excel y actualízala cuando quieras. Sin controlador ODBC, sin exportación a CSV, sin macros. La primera vez solo te llevará unos diez minutos, y el plan gratuito lo incluye.
Lo que obtendrás al final
Una hoja de cálculo que muestra los resultados en tiempo real de una consulta SQL en tu archivo SQLite, con un botón que muestra las filas más recientes cada vez que cambian los datos. Así:
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | customer_id | nombre de pila | apellido | país | total |
| 2 | 1042 | María | Álvarez | EE.UU | 1,284.50 |
| 3 | 1043 | Daniel | Okafor | EE.UU | 612.00 |
| 4 | 1047 | Priya | Nair | EE.UU | 2,090.75 |
| 5 | 1051 | Thomas | Iceberg | EE.UU | 338.20 |
| 6 | 1056 | Lucía | Ferreira | EE.UU | 1,455.00 |
| 7 | 1060 | Kenji | Sato | EE.UU | 874.10 |
| 8 |
Las bases de datos SQLite son archivos únicos, que generalmente terminan en .db, .sqlite, .sqlite3Excel no puede abrirlos por sí solo, y la solución habitual implica instalar un controlador ODBC y lidiar con las cadenas de conexión. Query Streams evita esto: un pequeño programa auxiliar lee el archivo donde ya se encuentra, y un complemento de Excel le solicita las filas que necesita. No es necesario que ambos programas estén en el mismo ordenador. El archivo puede estar en el ordenador de la oficina y usted puede estar en cualquier lugar: en su portátil en casa, en el ordenador de un compañero al otro lado del país o usando Excel en la web.
Lo que necesitarás
Una cuenta de Query Streams
El plan gratuito es suficiente para esta guía. Regístrate en mi.querystreams.com.
The Agent on a computer that can open the file
Un pequeño programa que se ejecuta en segundo plano y lee el archivo cuando Excel lo solicita. El paso 2 a continuación muestra dónde obtenerlo.
Tu archivo SQLite
Saber dónde está, por ejemplo C:\Datos\ventas.db o \\server\share\sales.db. If it lives in OneDrive, Dropbox or Google Drive, make sure it is synced to the Agent’s computer.
¿Qué ordenador recibe el Agente? 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 puede estar en cualquier lugarPuedes usarlo en tu portátil de casa, en el ordenador de un compañero al otro lado del país o en Excel a través de la web. No necesitas instalar nada más donde se ejecuta Excel.
Conéctalo en cinco pasos
-
Crea tu cuenta
Ir a mi.querystreams.com y regístrese. Elija el Gratis Es un plan real, no una versión de prueba, y abarca la conexión de tu archivo SQLite y la ejecución de consultas desde Excel.
Install the Agent on a computer that can open the file



Iniciar sesión, abrir Descargar, 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.
¿Por qué un programa pequeño en lugar de un controlador? 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.
La página de descarga muestra Su clave de accesoPégalo en el Agente cuando te lo pida y espera a que aparezca la insignia. Conectado a flujos de consulta. Eso es lo único que debes hacer en el propio Agente.
Si lo deseas, aquí tienes las guías completas: Ventanas, Impermeable, Linux.
-
Apúntalo a tu archivo SQLite
De vuelta en tu navegador, abre Agentes de datos (bajo Datos (en el menú superior). Su agente aparece allí. Haga clic. Agregar conector, elegir SQLitey rellenar:
- Nombre de la conexión
- Cualquier nombre que reconocerás más adelante, como base de datos de ventas.
- Ruta del archivo de la base de datos
- 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.
Haga clic en Probar la conexiónCuando se lee Conectado, haga clic GuardarLa conexión llega a su agente en cuestión de segundos.
¿La prueba falló? 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 abajo.
-
See your data in Query Builder Opcional
You can look at your SQLite file before Excel is involved at all. Open Generador de consultas in the portal and pick the connection you just made. The Esquema 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 Ejecutar and the rows appear under Resultados. 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.
-
Agregar flujos de consultas a Excel
En Excel, vaya a Insertar → Obtener complementos, buscar Flujos de consultay haga clic Añadir. O ábrelo directamente desde Consultar flujos en Microsoft AppSourceAparece un botón de Consultar flujos en la cinta de opciones. Inicie sesión con la misma cuenta.
Funciona en Excel para Microsoft 365 en Windows y Mac, y en Excel en la web.
-
Trae tu primera mesa
Haga clic en el botón Consultar flujos, elija Transmitir una consultay elige la conexión que acabas de hacer.
Escriba la consulta que desea ejecutar. Esta extrae algunas columnas de una clientes mesa:
Ejemplo · SQLSELECCIONAR customer_id, nombre, ciudad DE clientes ORDENAR POR nombre LIMITAR 100;
Bajo Hoja de destino elegir Crear una nueva hojaLuego, pulsa el botón de reproducción (la flecha ▶). Las filas aparecerán en Excel en uno o dos segundos. Vuelve a pulsarlo cada vez que cambien los datos y la hoja se actualizará automáticamente.
¿No sabes SQL? Build it in Generador de consultas 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? Dejar 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 \\servidor\recurso compartido 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:
| Mensaje | Causa | Arreglar |
|---|---|---|
| Access denied for the agent’s service account under the path, or Acceso denegado 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. | Haga clic en 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, o 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. |
Eso es todo. Tus datos están en la hoja de cálculo y se actualizan con un solo clic. Solo las filas que solicitaste salieron de tu red.
Buenos pasos a seguir
- Guardar la consulta en el portal para que puedas ejecutarlo de nuevo con un solo clic, desde Excel o Google Sheets.
- Agregar un filtro como un rango de fechas, de modo que la misma consulta pueda responder "este mes" sin necesidad de editarla.
- Comparte los resultados con un colega. Ellos ven las filas, no tu archivo ni la ruta del archivo.
Preguntas que hace la gente
¿Es necesario que Excel esté instalado en el mismo ordenador que el archivo SQLite?
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.
¿Se sube mi archivo de base de datos a algún sitio?
No. The Agent reads the file where it sits and sends only the rows your query asks for. The file stays where it is.
¿Puede estar el archivo en OneDrive, Dropbox o Google Drive?
Sí, siempre y cuando esté sincronizado con el ordenador donde se ejecuta el Agente, de modo que este lo reconozca como un archivo local normal. Dirija la conexión a la copia sincronizada.
¿El plan gratuito realmente cubre esto?
Sí. Gratis es un plan que usted conserva, no una prueba que caduca. Vea exactamente lo que incluye en el página de precios.
¿Es compatible con Excel para Mac?
Sí. Excel para Microsoft 365 en Mac y Windows, y Excel en la web.
Guías relacionadas
Cada guía para SQLite
¿No es exactamente lo que buscas?
- ¿Tienes una carpeta de archivos SQLite en lugar de uno? SQLite Folder combina las tablas que comparten un nombre en una sola tabla y etiqueta cada fila con el archivo del que proviene → SQLite Folder
- ¿Desea consultar los propios libros de Excel? Excel Folder lee una carpeta de libros de trabajo como tablas → 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?

