カテゴリーを見る

SQLiteをExcelに接続する方法 – 軽量データベースのデータをライブストリームで配信

接続 · SQLiteからExcelへ

データを取得する SQLite ファイルを エクセル

SQLiteデータベースをExcelで開き、いつでも好きな時に更新できます。ODBCドライバーも、CSVへのエクスポートも、マクロも不要です。初回は約10分で完了し、無料プランで利用できます。

約10分 コーディングは不要です ファイルは元の場所に残ります ウェブ上でも、どこでもExcelを使える
行き詰まったら、遠慮なく質問してください。 開く サポート クエリ ストリーム(右上メニュー → サポート)からメッセージを送信してください。担当者が目を通しますので、「この画面で何を求めているのか分かりません」というご質問は、全く問題ありません。

最終的に手に入るもの

SQLiteのロゴSQLiteファイルに対するSQLクエリのリアルタイム結果を表示するワークシート。データが変更されるたびに最新の行を取得するボタンが付いています。例:

SQLiteデータベースは単一のファイルであり、通常は末尾が .db, .sqlite, .sqlite3Excel はこれらのファイルを単独で開くことができず、通常の回避策としては ODBC ドライバーをインストールして接続文字列と格闘する必要があります。Query Streams はこれらの手間を省きます。小さなヘルパープログラムが既に保存されているファイルを読み込み、Excel アドインが必要な行をそのファイルから取得します。両者が同じコンピューター上にある必要はありません。ファイルはオフィスのコンピューターにあり、ユーザーは自宅のノートパソコン、遠く離れた同僚のコンピューター、または Web 上の Excel など、どこからでもアクセスできます。

ファイルの保存場所オフィスのコンピュータ、サーバー、または自宅のコンピュータSQLiteファイルsales.db · ここに滞在しますクエリストリームエージェントwhere it can open the fileクエリストリーム暗号化されたリンクインターネット経由 · 結果のみあなたがどこにいてもあなたのノートパソコン、別のオフィス、ホテル、あなたの電話エクセルWindows、Mac、またはウェブ版Excel
The Agent runs where it can open the file. Excel does not have to. Open the sheet anywhere and the rows come to you.

必要なもの

クエリストリームアカウント

このガイドは無料プランで十分です。登録はこちらから my.querystreams.com.

The Agent on a computer that can open the file

バックグラウンドで実行され、Excelが要求したときにファイルを読み込む小さなプログラムです。入手方法は以下の手順2をご覧ください。

SQLiteファイル

例えば、それがどこにあるかを知る C:\Data\sales.db または \\server\share\sales.db. If it lives in OneDrive, Dropbox or Google Drive, make sure it is synced to the Agent’s computer.

どのコンピュータにエージェントがインストールされますか? 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はどこにでも配置できる自宅のノートパソコン、遠く離れた同僚のパソコン、あるいはウェブ上のExcelなど、Excelが動作する環境であればどこでも利用可能です。Excelが動作する場所には、他に何もインストールする必要はありません。

接続方法は5つのステップです

  1. アカウントを作成する

    行く my.querystreams.com そしてサインアップします。 無料 これは計画です。試作ではなく、正式な計画であり、SQLiteファイルへの接続方法やExcelからのクエリ実行方法などを網羅しています。

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

    サインインして開く ダウンロード, 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.

    ドライバではなく、なぜ小さなプログラムを使うのか? 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.

    ダウンロードページには アクセスキーエージェントに求められたら貼り付け、バッジが読み取るまで待ちます。 クエリ ストリームに接続しましたエージェント本体で行う操作はそれだけです。

    ご希望であれば、完全攻略ガイドもご用意しています。 Windows, マック, Linux.

  3. SQLiteファイルを指定してください。

    ブラウザに戻って、 データエージェント (下 データ 上部メニューにあります。エージェントがそこに表示されています。クリックしてください。 コネクタを追加する、 選ぶ SQLite、そして記入してください。

    接続名
    後で必ず思い出すような名前、例えば「販売データベース」など。
    データベースファイルのパス
    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.

    クリック 接続テスト読むと 接続済み、 クリック セーブ接続は数秒以内に担当エージェントに到達します。

    テストは失敗しましたか? 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 下に。

  4. See your data in Query Builder オプション

    You can look at your SQLite file before Excel is involved at all. Open クエリビルダー in the portal and pick the connection you just made. The スキーマ 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 走る and the rows appear under 結果. 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.

  5. Excelにクエリ ストリームを追加する

    Excelで、 挿入 → アドインを取得、 検索する クエリストリーム、そしてクリック 追加または、直接開く Microsoft AppSource のクエリ ストリームリボンに「クエリ ストリーム」ボタンが表示されます。同じアカウントでサインインしてください。

    WindowsおよびMac版のMicrosoft 365版Excel、およびWeb版Excelで動作します。

  6. 最初のテーブルを運び入れる

    クエリ ストリーム ボタンをクリックし、 クエリをストリーミングするそして、先ほど接続した接続を選択してください。

    実行したいクエリを入力してください。これは、いくつかの列を抽出します。 お客様 テーブル:

    例:SQL
    SELECT customer_id, name, city FROM customers ORDER BY name LIMIT 100;

    下 目的地一覧表 選ぶ 新しいシートを作成します次に再生ボタン(▶矢印)を押します。行は1~2秒でExcelに反映されます。データが変更された場合はいつでももう一度押すと、シートがその場で更新されます。

    SQLを知らない? Build it in クエリビルダー 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 /月 または /メディア, because the Agent’s service cannot see /home または /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

マック

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? 離れる 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:

メッセージ原因修理
Access denied for the agent’s service account under the path, or アクセスが拒否されました 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.クリック 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、または 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.

それでおしまい。 データはシート内に保存され、ワンクリックで常に最新の状態に保たれます。お客様が要求した行以外は、ネットワークから外部に送信されることはありません。

良い次の動き

  • クエリを保存します ポータルにインストールすれば、ExcelやGoogleスプレッドシートからワンクリックで再度実行できます。
  • フィルターを追加する 例えば日付範囲などを指定することで、同じクエリで編集せずに「今月」という回答を得ることができます。
  • 結果を共有する 同僚と共有する場合、同僚はファイルの内容やファイルパスではなく、行数を見ることになります。

人々が尋ねる質問

Excelは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.

私のデータベースファイルはどこかにアップロードされますか?

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

ファイルはOneDrive、Dropbox、またはGoogle Driveに保存されていても構いませんか?

はい、エージェントが実行されているコンピューターと同期されていれば問題ありません。そうすれば、エージェントはそれを通常のローカルファイルとして認識します。接続先を同期済みのコピーに設定してください。

無料プランで本当にこれがカバーされるのですか?

はい。無料プランは継続して利用できるプランで、期限切れのトライアルではありません。プランに含まれる内容については、 価格ページ.

Mac版Excelでも動作しますか?

はい。Mac版とWindows版のMicrosoft 365版Excel、そしてWeb版Excelが利用可能です。

まだ行き詰まっていますか? 開く サポート クエリ ストリームで、どのステップで何が表示されているかをお知らせください。接続をご案内いたします。
クエリ ストリームは同じデータを接続しますグーグル シートクロード、カーソル、チャットGPTREST APIさらに

すべてのガイド SQLite

あなたの設定とは少し違いますか?

  • SQLiteファイルが1つではなくフォルダに複数ありますか?SQLite Folderは、同じ名前のテーブルを1つのテーブルにマージし、各行に元のファイルを示すタグを付けます → SQLite Folder
  • Excelワークブック自体をクエリしたいですか?Excel Folderはワークブックのフォルダをテーブルとして読み取ります→ 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?
更新日 10月 17, 2026