データを取得する SQLite ファイルを エクセル
SQLiteデータベースをExcelで開き、いつでも好きな時に更新できます。ODBCドライバーも、CSVへのエクスポートも、マクロも不要です。初回は約10分で完了し、無料プランで利用できます。
最終的に手に入るもの
SQLiteファイルに対するSQLクエリのリアルタイム結果を表示するワークシート。データが変更されるたびに最新の行を取得するボタンが付いています。例:
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | 顧客ID | ファーストネーム | 苗字 | 国 | 合計 |
| 2 | 1042 | マリア | アルバレス | アメリカ合衆国 | 1,284.50 |
| 3 | 1043 | ダニエル | オカフォー | アメリカ合衆国 | 612.00 |
| 4 | 1047 | プリヤ | ナイア | アメリカ合衆国 | 2,090.75 |
| 5 | 1051 | トーマス | ベルク | アメリカ合衆国 | 338.20 |
| 6 | 1056 | ルシア | フェレイラ | アメリカ合衆国 | 1,455.00 |
| 7 | 1060 | ケンジ | 佐藤 | アメリカ合衆国 | 874.10 |
| 8 |
SQLiteデータベースは単一のファイルであり、通常は末尾が .db, .sqlite, .sqlite3Excel はこれらのファイルを単独で開くことができず、通常の回避策としては ODBC ドライバーをインストールして接続文字列と格闘する必要があります。Query Streams はこれらの手間を省きます。小さなヘルパープログラムが既に保存されているファイルを読み込み、Excel アドインが必要な行をそのファイルから取得します。両者が同じコンピューター上にある必要はありません。ファイルはオフィスのコンピューターにあり、ユーザーは自宅のノートパソコン、遠く離れた同僚のコンピューター、または Web 上の Excel など、どこからでもアクセスできます。
必要なもの
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つのステップです
-
アカウントを作成する
行く my.querystreams.com そしてサインアップします。 無料 これは計画です。試作ではなく、正式な計画であり、SQLiteファイルへの接続方法やExcelからのクエリ実行方法などを網羅しています。
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.
ダウンロードページには アクセスキーエージェントに求められたら貼り付け、バッジが読み取るまで待ちます。 クエリ ストリームに接続しましたエージェント本体で行う操作はそれだけです。
-
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 下に。
-
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.
-
Excelにクエリ ストリームを追加する
Excelで、 挿入 → アドインを取得、 検索する クエリストリーム、そしてクリック 追加または、直接開く Microsoft AppSource のクエリ ストリームリボンに「クエリ ストリーム」ボタンが表示されます。同じアカウントでサインインしてください。
WindowsおよびMac版のMicrosoft 365版Excel、およびWeb版Excelで動作します。
-
最初のテーブルを運び入れる
クエリ ストリーム ボタンをクリックし、 クエリをストリーミングするそして、先ほど接続した接続を選択してください。
実行したいクエリを入力してください。これは、いくつかの列を抽出します。 お客様 テーブル:
例:SQLSELECT 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.
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 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. | クリック 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、または 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. |
それでおしまい。 データはシート内に保存され、ワンクリックで常に最新の状態に保たれます。お客様が要求した行以外は、ネットワークから外部に送信されることはありません。
良い次の動き
- クエリを保存します ポータルにインストールすれば、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が利用可能です。
関連ガイド
すべてのガイド 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?

