---
title: "Query Multi-Record CSV Files with SQL"
description: "![](https://querystreams.com/wp-content/uploads/2026/09/icon-recordtype-csv-128.png)Multi-record CSV[![](https://querystreams.com/wp-content/uploads/2026/11/qs-logo-mark-120.png)](https://my.querystreams.com)Free planQuery Streams[![](https://querystreams.com/wp-content/uploads/2026/11/tile-querystreams-data-connectors-t2-180.png)](https://querystreams.com/features/)SQL tables Multi-record CSV folder → SQL tables · with Query Streams With Query Streams, CSV files that mix several record types become one read-only SQL table per record type: the files stay where they are, the…"
url: "https://querystreams.com/id/docs/query-multi-record-csv-files-with-sql/"
updated: "2026-11-09"
category: File Set Connectors
---

# Query Multi-Record CSV Files with SQL

![](https://querystreams.com/wp-content/uploads/2026/09/icon-recordtype-csv-128.png)Multi-record CSV[![](https://querystreams.com/wp-content/uploads/2026/11/qs-logo-mark-120.png)](https://my.querystreams.com)Free planQuery Streams[![](https://querystreams.com/wp-content/uploads/2026/11/tile-querystreams-data-connectors-t2-180.png)](https://querystreams.com/features/)SQL tables

Multi-record CSV folder → SQL tables · with Query Streams

With Query Streams, CSV files that mix several record types become one read-only SQL table per record type: the files stay where they are, the Agent on that computer reads them into an encrypted local cache and keeps the tables current as files arrive, change or disappear. Nothing is uploaded and no file is changed. About fifteen minutes the first time, and the Free plan covers it.

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

![Isometric stack of three file sheets linked by one line to a single table tile](https://querystreams.com/wp-content/uploads/2026/11/hero-fileset-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 Multi-record[![](https://querystreams.com/wp-content/uploads/2026/08/qs-doc-csv-folder.png)Same columns in every row?](https://querystreams.com/docs/combine-multiple-csv-files-into-one-table/)[![](https://querystreams.com/wp-content/uploads/2026/05/icons8-claude-48.png)Claude (MCP)](https://querystreams.com/docs/how-to-connect-multi-record-csv-files-to-claude-via-mcp/)[![](https://querystreams.com/wp-content/uploads/2025/12/icons8-rest-api-64.png)REST API](https://querystreams.com/docs/multi-record-csv-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

![Multi-record CSV icon](https://querystreams.com/wp-content/uploads/2026/09/icon-recordtype-csv-128.png)You end up with one SQL table per record type. A CSV file whose lines are tagged HDR, ITM and TRL becomes `fileset.data_hdr`, `fileset.data_itm` and `fileset.data_trl`, each holding that record type from every file in the folder. Columns are numbered by position, `field_1` to `field_N`, and every row carries `_source_file` and `_seq`, so you can join a header to its details with two columns. The Agent reads the folder on its own computer, caches the rows there in an encrypted local store, and serves them as SQL to Excel, Google Sheets, the Query Builder or any other client. The files stay on your network.

  Your folder

### files that arrive over time

| sales_2026_07.csv |
| --- |
| sales_2026_08.csv |
| sales_2026_09.csv |

 fileset.data_hdr

### every file’s rows, one table

| _source_file | _seq | field_1 |
| --- | --- | --- |
| sales_2026_07.csv | … | … |
| sales_2026_08.csv | … | … |
| sales_2026_09.csv | … | … |

Every table sits in one schema named `fileset`. Tables are named for you, one per record tag: `data_<tag>`, so the tag HDR becomes `fileset.data_hdr`. With **Table scope** set to **One table per file extension and tag**, the name becomes `data_<extension>_<tag>`, which keeps the same tag from different file kinds apart. Columns are `field_1` to `field_N` by position, with the tag column left out. Each row also carries `_seq`, the 0-based occurrence of that tag within the file and the join key between record types, plus `_source_file` and a `_row_id` of the form path:line.

| Table | What it holds |
| --- | --- |
| `fileset.data_hdr` | Every HDR line from every file, as `field_1` to `field_N`, with `_seq` and `_source_file`. |
| `fileset.data_<tag>` | The same for every other tag. |

Every folder connector also gives you the bookkeeping tables `files`, `files_events`, `directories`, `directory_snapshots` and `volumes`.

The Agent reads the folder on its own computer, keeps the rows in an encrypted local cache there and runs every query against that cache. Only the rows a query returns travel out, over one outbound connection. No port to open, no VPN, no upload.

Where it earns its keep:

- Query bank, payroll or EDI-style batch files that mix header, detail and trailer lines.
- Reconcile each file's trailer totals against its detail lines in one query.
- Load inbound batch files into Excel or Google Sheets as proper tables instead of hand-splitting them.

## What you’ll need

### A Query Streams account

Folder connectors are on every plan, including Free. Free is a plan you keep, not a trial that expires. There is no cap on how many files a folder may hold.

![](https://querystreams.com/wp-content/uploads/2026/09/icon-recordtype-csv-128.png)

### The Agent, 2.6.0 or later

Installed on a computer that can open the folder: the file server itself, an office computer, or the machine the files land on. An older Agent shows the folder cards greyed out with an **Agent 2.6.0+** badge. Windows, Mac or Linux.

### The folder’s path, as the Agent sees it

A local path, or a network share written as `\\server\share\folder`. The Agent runs as a service, so it cannot see drives you mapped at your login (Z: and friends). On Windows it can sign in to a share with a login you store; on Linux or a Mac, mount the share first (Linux under `/mnt` or `/media`, a Mac under `/Volumes`).

**Where does the work happen?** On the computer that runs the Agent. It scans the folder, copies the rows into an encrypted local cache there (one schema, named `fileset`) and runs every query against that cache. Your files are read, never modified, moved or uploaded.

## Set it up in five steps

1. ### Install the Agent on a computer that can open the folder ![](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 that can open CSV files that mix several record types: the file server, or any always-on computer that can reach the share. It takes a minute and starts on its own from then on. You need version 2.6.0 or later; the Download page always has the current one.
   **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). It opens one outbound encrypted connection to Query Streams and that is the only network path it needs: no inbound port to open, no VPN. It reads the folder where it sits, so the files stay put and only the rows a query returns travel across the internet to the add-in, browser or AI client on your side.
   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’s computer; everything else happens in your browser.
   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/).
2. ### Point it at CSV files that mix several record types

   Back in your browser open [**Data → Data Agents**](https://my.querystreams.com/data-agents), find the Agent you just installed and click its **Add connector** button. Open the **Files & Folders** pill and pick the **Multi-record CSV** card. Not sure which card fits? Pick **Files in a folder** instead: the Agent samples the folder, names what it holds on a “What we found” page and opens the right card for you, pre-filled.
   The wizard runs **Folders → Check → Settings → Realm → Review**. On **Folders**:
   **Root folders**
   : One path per line, as the Agent’s computer sees it. Each folder shows a status (reachable, denied, missing, unreachable, credentials invalid or not mounted) as soon as you add it. On a Windows Agent a share that needs a login gets one from the folder’s **Credential** column, stored once per server; on Linux or a Mac, mount the share first.
   **Scan subfolders, Max depth**
   : On, and 8 levels, by default.
   **Include patterns, Exclude patterns**
   : Which files count. The include pattern starts with the right glob for this card. One connector reads one file type: a folder with CSV *and* Parquet files is two connectors on the same folder, one per type.
   **Follow symlinks and junctions**
   : Off by default. The Agent does not follow shortcuts or cloud placeholders unless you turn this on.

   Install the Query Streams Agent (2.6.0 or later) on a computer that can open the folder. From that Agent’s **Add connector** button, open **Files & Folders** and pick the **Multi-record CSV** card.
   - **Root folders**: the folders on the Agent computer to scan, one per line. Type network shares as `\\server\share\folder`, not a mapped drive letter.
   - **Include patterns** starts as `**/*.csv`.
   - **File layout**, **Record tag column (number)** and **Delimiter**: which column holds the record tag and what separates the fields.
   - **Table scope**: leave the default for one table per tag. Choose **One table per file extension and tag** to keep the same tag from different file kinds in separate tables.
   There is no **Table name** field and no **Table layout** choice. Tables are named `data_<tag>`. A note explains that all matched files must share one layout, pinned from a sample on the first sync; files that later disagree are set aside and reported.
3. ### Check what it will build

   On **Check** the Agent reads a sample of up to 64 files and shows what it will build. Nothing is created yet. The button reads **Test connection** until a verdict exists, then **Next**; **Test again** re-runs the sample after you change something. You will see one of four headlines:
   **Ready to create**
   : Every sampled file fits. The chips under it say how many folders were reachable, how many files and rows, and which tables will exist.
   **Ready, with notes**
   : Some files will be set aside, or the layout sniff refused. An amber banner says exactly which: “{n} of {m} file(s) will be set aside” with a **Show which files and why** list, and “You can create it anyway — the connector will keep re-checking and reports the reason on its Manifest tab.”
   **Needs attention**
   : The Agent is offline or a folder is missing. Fix that before going on; with the Agent offline the page says so and still lets you continue.
   A refusal or set-aside files never block you: click **Next**, finish the wizard and fix the odd files later. Only an offline Agent or a missing folder stops the wizard.

   On **Check**, the Agent reads a sample of up to 64 files and shows the file count, size, row estimate and the tables it will build, one per record tag it found, in a chip such as “3 tables: data_hdr, data_itm, data_trl”. Nothing is created yet. If the tag column is set wrong, the tags the Agent lists will not look like your record types, which is your cue to go back and change **Record tag column (number)** or **Delimiter**. Files the Agent could not read as CSV appear under **Show which files and why** as set aside, with the banner “1 of 12 file(s) will be set aside”, and the rest still load. You can create the connector either way; it keeps re-checking and reports the reason on its **Manifest** tab.
4. ### Choose how often it scans, then create it

   The defaults on **Settings** suit a folder that receives a few files a day. Four you may want to change:
   **Scan interval**
   : **Every hour** by default; choose from every 5 minutes to daily. Each sweep compares size and modified time to find new, changed and vanished files.
   **Watch folder for changes (near real-time)**
   : Off by default. On, the Agent reacts within seconds on local disks; on network shares it is best-effort and the scheduled scan remains the guarantee. **Quiet period** (15 seconds) waits for a file to finish being written.
   **Refresh before answering a query**
   : Off by default. On, a query first re-scans when the last scan is older than the **Staleness window** (60 seconds), waiting at most the **Query wait limit** (5 seconds). It applies to people and add-ins, not to alert polling.
   **When a file vanishes**
   : **Drop its rows** by default, or **Keep rows, mark deleted (tombstone)**. The **Vanish guard ratio** (0.5) refuses a scan that loses more than half the files at once and keeps the previous inventory, which is what an offline share looks like.
   Then pick the **Data Realm** the rows count against, check **Review** and click **Create connector**. The first scan starts right away. The connector’s **Manifest** tab shows what it built and any file it set aside.
5. ### Look at your tables

   Open the connector: the **Manifest** tab lists the tables it built. In the **Query Builder** the same tables sit under the `fileset` schema. Three queries that work on day one:
    Header records, in file order
   ```
   SELECT _source_file, _seq, field_1, field_2
   FROM fileset.data_hdr
   ORDER BY _source_file, _seq
   LIMIT 100
   ```

   Every header line from every file, with the file it came from and its position among the headers in that file.
    Each file's header next to its trailer
   ```
   SELECT h._source_file, h._seq, h.field_1 AS header_field_1, t.field_1 AS trailer_field_1
   FROM fileset.data_hdr AS h
   JOIN fileset.data_trl AS t
     ON t._source_file = h._source_file AND t._seq = h._seq
   ORDER BY h._source_file, h._seq
   LIMIT 100
   ```

   Joins two record types on the two shared columns, _source_file and _seq, so the nth header meets the nth trailer in the same file.
    Files set aside for an unknown tag or wrong width
   ```
   SELECT relative_path, event_type, detected_by, detail, event_at
   FROM fileset.files_events
   WHERE event_type IN ('refused', 'drift')
   ORDER BY event_at DESC
   LIMIT 20
   ```

   Every file whose rows were left out, with the reason in detail.

   Every folder connector also serves the same bookkeeping tables, all in the `fileset` schema:
   | Table | What it holds |
   | --- | --- |
   | `files` | Every file currently in the folder: path, name, extension, size, created and modified times, first and last seen. A view over `files_current`, which also keeps files that have vanished. |
   | `files_events` | The change history: one row per file that `appeared`, was `modified`, `vanished`, was set aside (`drift`) or was `refused`, with the time in `event_at`, how it was noticed in `detected_by` and the reason in `detail`. |
   | `directories`, `directory_snapshots`, `volumes` | Folder counts and sizes, how they grew, and the disks or shares the roots live on. |
   | `_source_file`, `_row_id` | Two columns on every data row: which file the row came from, and a stable row id inside that file. Group by `_source_file` to compare files. |

**That’s it.** Drop a new file in the folder and, after the next scan, it is in the table. The files never left the computer they were on.

## 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, or a folder’s **Credential** column) 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.

**Folders on a share?** On Windows, one login covers every folder you add from the same server. **Watch folder for changes** works on a share too, on a best-effort basis; the scheduled scan is what guarantees every change is picked up.

### When a folder is not reachable

Every folder on the **Folders** step shows a status as soon as you add it. Hover the status to read the Agent’s own message; its first words say which case it is.

| Status or message | What it means | What to do |
| --- | --- | --- |
| **denied** | The share did not let the Agent in. With no login stored, a Windows Agent reads as its service account, which a company domain sees as the computer itself. | Windows: click **Service identity** in the folder’s **Credential** column and store a login that can read the share, or ask whoever runs the server to give the stored one read access. Linux or Mac: the share is mounted, but its permissions keep the Agent out; check how it is mounted ([Linux](https://querystreams.com/docs/where-the-agent-can-read-files-from/#share-linux), [Mac](https://querystreams.com/docs/where-the-agent-can-read-files-from/#share-macos)). |
| **credentials invalid**, or **The stored credentials for \\\\server were refused** | The server rejected the stored login: a typo, the wrong domain or a changed password. The Agent waits a minute before it tries that login again, so the account is not locked out. | Click the account name in the **Credential** column and type the login again. For an account made on the server itself, leave **Domain** blank. |
| **missing** | No folder at that path. On Windows, a server name that cannot be found, or a share the server does not have, also shows as missing. | Check the names, or pick the folder with **Add folder from the agent** instead of typing it. |
| **unreachable**, or **\\\\server did not answer** | No answer from the server: it is off, the name is wrong, or a firewall blocks file sharing. | Open the same **\\\\server\\share** path on the Agent’s computer. If that fails too, it is a network problem. |
| **not mounted** (Linux or Mac) | The share is not mounted on the Agent’s computer. Hover the status, or the **Not mounted** chip in the **Credential** column, for the exact mount command. | Mount the share ([Linux](https://querystreams.com/docs/where-the-agent-can-read-files-from/#share-linux), [Mac](https://querystreams.com/docs/where-the-agent-can-read-files-from/#share-macos)), then test the folder again. |
| **Another connector on this agent already signs in to \\\\server as …** | Windows allows one account per file server on each computer, and another connector on this Agent uses a different one. | Use the same login as that connector, or change it on every connector that reads this server. |
| **Windows already holds a sign-in to \\\\server for …** | Something else on the Agent’s computer is signed in to that server with another account, and the Agent never closes a sign-in it did not make. | Follow the message: it names the Windows account the Agent runs as and says whether **Use service identity** would read the share through the existing sign-in. |
| **This agent build cannot sign in to \\\\server with stored credentials.** | An older Agent that cannot use a stored share login. | Update the Agent, then test again. |

## Use it everywhere

The connector is a data source like any other in Query Streams. Save a query once in the **Query Builder** (the dialect is DuckDB) and use it from:

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

### Excel

The add-in’s **Stream a Query** drops the rows into a sheet and re-runs on a click. [Running SQL in Excel](https://querystreams.com/docs/sql-in-excel/).

### Google Sheets

The **Query Streamer** add-on fills a tab you pick. [Power Query for Google Sheets](https://querystreams.com/docs/power-query-for-google-sheets/).

### Claude, Cursor and other AI clients

Through the Query Streams MCP server; Claude knows the folder model, including `_source_file` and `files_events`. [Multi-record with Claude via MCP](https://querystreams.com/docs/how-to-connect-multi-record-csv-files-to-claude-via-mcp/).

### REST API

Any saved query becomes a read-only endpoint with its own key, on every plan. [Multi-record REST API](https://querystreams.com/docs/multi-record-csv-rest-api/).

### Nova

Ask in plain English on the Business plan; Nova knows every folder table and column from its built-in descriptions.

### Automations

Sync the rows to Airtable, Smartsheet, Baserow, SeaTable or a sheet on a schedule. [Automation guides](https://querystreams.com/docs-category/automation-integrations/).

Folder tables join to your other connectors too: a federated query can match `_source_file` names or order ids in CSV files that mix several record types against a database on the same Agent.

## How new, changed and deleted files show up

### New and changed files

On every **Scan interval** (or within seconds with **Watch folder** on) a new file that fits the layout has its rows added and gets an `appeared` event. A changed file is re-read in one transaction: its old rows go, its new rows come, and it gets a `modified` event.

### Deleted files

A file that vanishes drops its rows by default, or keeps them marked deleted if you chose the tombstone option, and gets a `vanished` event. If more than half the files disappear at once the scan is refused and the previous inventory stays: an offline share looks exactly like that.

### Set-aside files

A file that does not fit the layout, cannot be opened, or is over a cap is set aside whole: none of its rows load, and `files_events` gets a `drift` row naming the file and the column. Fix the file and save it; the next scan tries it again.

### How fresh is what I see?

Queries answer from the last scan. There is no Rescan or Sync now button; the scan interval, the folder watcher and **Refresh before answering a query** are the three controls. `MAX(last_seen_utc)` from `files_current` tells you when the Agent last looked.

## Files that are set aside

Three words appear on the Check step and the Manifest tab. They mean different things:

**Set aside (parked)**
: The file does not match the pinned layout, or is unreadable, torn, locked or over a cap. It is all-or-nothing per file: a parked file contributes zero rows. `files_events` records a `drift` row whose `detail` names the file and the column. The file is skipped while its size and modified time stay the same, and retried as soon as it changes.

**Unreadable**
: The Agent could not open or parse the file as its type: not a real workbook, locked by another program, a cloud placeholder, undecodable bytes. It parks on its own and the rest of the folder continues. Only a folder with zero readable files refuses the whole set.

**Refused**
: The Agent could not pin any layout at all, for example because files disagree on a column type. No data table exists yet. `files_events` gets a `refused` row with the reason in `detail`, and the Agent re-tries on every scan until a layout pins. Fix or exclude the file it names and the message clears.

Where to look: the amber banner on **Check** (**Show which files and why**), the connector’s **Manifest** tab afterwards. In SQL: `SELECT relative_path, event_type, detail FROM fileset.files_events WHERE event_type IN ('drift','refused') ORDER BY event_at DESC`.

**For CSV files that mix several record types that usually looks like this:** An inbound file batch_0920.csv that contains a line tagged ADJ, a tag the pinned layout has never seen, is set aside with none of its rows loaded; files_events gets a drift row with detected_by pin whose detail names the file and the reason.

## Limits worth knowing

There is no plan limit on folders or on the number of files. The rows do count against your Data Realm like any other connector. Defaults you can raise or lower on the connector:

| Setting | Default | What it does |
| --- | --- | --- |
| Max depth | 8 | How many folder levels below each root are scanned (1–64). |
| Max files per scan | 100,000 | Files considered in one sweep. |
| Max file size to hash | 32 MiB | Only matters with **Hash file contents** on. |
| Event log retention | 30 days | How long `files_events` rows are kept. |
| Scan parallelism per root | 2 | Folders read at once per root. |

Content caps, which park a file rather than truncate it: 2,000,000 rows or 512 MiB per file, 10,000,000 rows or 2 GiB per scan. A folder can hold at most 25 distinct layouts in **One table per layout** mode.

## Questions people ask

  How do I join a header row to its detail rows?

Join the two tables on `_source_file` and `_seq`. `_seq` counts each tag’s occurrences within a file, starting at 0, and is the join key between record types. If your files carry a batch or document number in a field, you can join on `_source_file` and that field instead.

 What happens when a file has a tag the connector has not seen?

The whole file is set aside before any row loads. The same happens when a line has the wrong number of fields for its tag. `files_events` records a `drift` row that names the file and the reason. Fix the file and save it, and the next scan tries it again. Adding a new tag as a table takes a connector change: edit and save a driver option and the Agent re-samples.

 Why are the columns called field_1, field_2 and so on?

Each record type has its own width, so the connector numbers columns by position, leaving out the tag column. The names stay stable while the layout is pinned. Run Semantic Intelligence on the connector to record what each numbered field holds, and use aliases in your queries or saved queries to give them readable names.

 Can the same tag mean different things in different file kinds?

Yes, if you keep them apart. Set **Table scope** to **One table per file extension and tag** and the tables become `data_<extension>_<tag>`, so a HDR line in a .csv file and a HDR line in a .txt file land in different tables. Add the other extension to **Include patterns** so both file kinds are matched.

 Do the files have to be on the computer running the Agent?

The folder has to be reachable from that computer. A local folder or a network share both work. Type a share as `\\server\share\folder` rather than a mapped drive letter, because the Agent runs as a service and cannot see drives mapped at your login. On a Windows Agent, if the share lets in only named people, store a login for that server from the folder’s **Credential** column; on Linux or a Mac, mount the share first ([Reaching a file on a network share](#network-share)). New files are picked up on the **Scan interval**, every hour by default. If you also want Claude to query these tables, see [Connect Multi-Record CSV Files to Claude with MCP](https://querystreams.com/docs/how-to-connect-multi-record-csv-files-to-claude-via-mcp/).

  Are my files uploaded anywhere?

No. The Agent reads them on its own computer and keeps the rows in an encrypted local cache there. A query runs against that cache and only the rows it returns leave the machine, over one outbound connection. Files are never modified, moved or converted.

Do I need to open a port or run a VPN?

No. The Agent makes one outbound connection on port 443 and both requests and rows travel over it. If outbound HTTPS works, this works.

Can the folder be on a network share, or in OneDrive or Dropbox?

Yes. Type a share as `\\server\share\folder`, because the Agent runs as a service and cannot see drives mapped at your login. On Windows, store a login for the server if the share lets in only named people; without one the Agent reads as its own service account. On Linux or a Mac, mount the share first. A synced OneDrive or Dropbox folder works when its files are stored on the computer: set the folder to **Always keep on this device**. The Agent does not download cloud-only files.

The folder has more than one kind of file. One connector or two?

One connector reads one file type. A folder with CSV and Parquet files is two connectors on the same root, one per type. Files that do not match the include pattern are ignored, not set aside.

Is there a Rescan button?

No. The Agent scans on the **Scan interval**, reacts to changes when **Watch folder** is on, and can re-scan before answering a query when you turn that on. Edit the connector to change any of the three.

Does the Free plan really cover this?

Yes. Free is a plan you keep, not a trial that expires. Folder connectors have no file cap of their own; the rows count against your Data Realm like any other connector. See what each plan includes on the [pricing page](https://querystreams.com/pricing/).

 Other folders Query Streams turns into tables[How to query a folder of files with SQL](https://querystreams.com/docs/how-to-query-a-folder-of-files-with-sql/)[All File Set guides](https://querystreams.com/docs-category/file-set-connectors/)

- [File System](https://querystreams.com/docs/index-a-file-system-and-query-it-with-sql/)
- [CSV Folder](https://querystreams.com/docs/combine-multiple-csv-files-into-one-table/)
- [Parquet Folder](https://querystreams.com/docs/query-a-folder-of-parquet-files-with-sql/)
- [Excel Folder](https://querystreams.com/docs/merge-multiple-excel-files-into-one-table/)
- [SQLite Folder](https://querystreams.com/docs/combine-multiple-sqlite-database-files/)
- [JSONL Folder](https://querystreams.com/docs/turn-a-folder-of-json-files-into-sql-tables/)
- [Machine Logs](https://querystreams.com/docs/cnc-machine-monitoring-with-sql-from-controller-logs/)
- [Web Server Logs](https://querystreams.com/docs/query-nginx-and-iis-logs-with-sql/)
- [Container Logs](https://querystreams.com/docs/query-docker-container-logs-with-sql/)
- [Application Logs](https://querystreams.com/docs/query-application-logs-with-sql/)
- [System Logs](https://querystreams.com/docs/query-syslog-files-with-sql/)
- [Custom Logs](https://querystreams.com/docs/custom-log-analysis-with-sql/)

 **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.

Every guide for Multi-record

- [![](https://querystreams.com/wp-content/uploads/2026/05/icons8-claude-48.png)Claude (MCP)](https://querystreams.com/docs/how-to-connect-multi-record-csv-files-to-claude-via-mcp/)
- [![](https://querystreams.com/wp-content/uploads/2025/12/icons8-rest-api-64.png)REST API](https://querystreams.com/docs/multi-record-csv-rest-api/)

Not quite your setup?

- Does every row in your files have the same columns, with a header row? CSV Folder merges them into one table → [CSV Folder](https://querystreams.com/docs/combine-multiple-csv-files-into-one-table/)
- Only need a list of files with sizes, dates and changes? File System does that without reading the files → [File System](https://querystreams.com/docs/index-a-file-system-and-query-it-with-sql/)
- Want what the machines themselves log, such as alarms and cycles? Machine Logs reads controller log folders → [Machine Logs](https://querystreams.com/docs/cnc-machine-monitoring-with-sql-from-controller-logs/)

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/)
