Turn Static SQL Into
Dynamic Reports
Query Streams automatically detects hard-coded values in your SQL and transforms them into user-friendly filter inputs for Microsoft Excel and Google Sheets – no coding required.
Query Streams automatically detects hard-coded values in your SQL and transforms them into user-friendly inputs—so anyone can run customized reports directly from Microsoft Excel or Google Sheets without touching the SQL or seeing credentials. Learn more at QueryStreams.com and sign up for free to start building dynamic, self-service reports.
The Problem with Traditional Reporting
Every organization has this problem: analysts write SQL queries with hard-coded values like customer IDs, date ranges, or status codes. When someone needs a different customer or date range, they either wait for the analyst to modify the query, or worse, they get database access they shouldn’t have. Meanwhile, scheduled reports pile up in inboxes—stale before they’re even opened.
Query Streams solves this by detecting those hard-coded values and turning them into parameters that end users can adjust themselves—safely, from Excel or Google Sheets, without ever seeing the underlying SQL.
Why Query Streams Is Different
Auto‑parameters, not scripts
The Agent advantage
Query Streams
- Auto‑detected filters become input controls in Excel/Sheets
- Share interactive capability without exposing SQL
- Outbound‑only Agent; no VPN, no inbound rules, no drivers
- Parallel streaming to multiple sheets/tabs
- Unified datasources across multiple Agents
Traditional tools
- Manual scripting/macros or rigid connectors
- Static exports or scheduled refresh only
- Gateways, ODBC drivers, VPN and inbound rules
- Credentials shared; SQL often exposed
- One‑off setups; version drift
How Query Streams Filters Work
Write your SQL normally
WHERE customer_po = 'PO-12345'
AND sale_date BETWEEN '2025-01-01' AND '2025-06-30'
AND status IN ('ACTIVE', 'PENDING')
Open the Query Streams Query Builder and tie this query to a datasource registered on a Query Streams Agent (e.g., Microsoft SQL Server, PostgreSQL, MySQL, MariaDB, SQLite, Microsoft Access). Agents create a secure, outbound connection—no inbound firewall rules or VPN. If you haven’t installed an Agent yet, see Installing the Query Streams Agent on Windows.
We’ll save this query as “Pull customer PO data” so it appears by name in the Excel/Sheets add‑on.
Query Streams detects filters automatically
Detection is step one. In the Properties tab you choose which detections become inputs and set defaults. You can leave some values locked (not exposed) and make others configurable for end users.
Share the query
This is the Microsoft Excel / Google Sheets add‑on interface. In Step 1 you created and named the query “Pull customer PO data”. After you share it, the remote user opens the add‑on, chooses Shared Queries, and selects that item.
Next: in the Filtering Conditions section, click the gear icon to configure parameters. That opens the parameter UI shown in Step 4.
Shared Queries
Access queries shared with youWhat users see in Excel/Sheets
Tip: This panel is interactive. Change any input and watch Step 5 update the SQL preview in real time. Then scroll to Step 6 to see a simulated stream of rows into the workbook.
Selections become SQL—live
WHERE customer_po = 'PO-12345'
AND sale_date BETWEEN '2025-01-01' AND '2025-06-30'
AND status IN ('ACTIVE', 'PENDING')
What happens when you click Run
- The add‑in sends your inputs to the Query Streams Agent.
- The Agent safely executes the saved SQL against the selected datasource with those parameters.
- Results are streamed back out to Microsoft Excel or Google Sheets and written into the target sheet.
Connections are outbound‑only; SQL text and credentials remain hidden. For large results, the Agent streams efficiently and supports running multiple queries in parallel into separate tabs.
Data streams into your workbook
SQL Examples for Each Filter Type
Here’s how different values look in your raw SQL. Query Streams detects these patterns and maps them to the right user input in Excel or Google Sheets.
String Filter
WHERE customer_id = 'CUST-A123'
Number Filter
WHERE quantity > 500
String List (IN Clause)
WHERE status IN ('SHIPPED', 'DELIVERED')
Date Filter
WHERE order_date = '2025-07-15'
Date Range (BETWEEN)
WHERE ship_date BETWEEN '2025-01-01' AND '2025-03-31'
Numeric Range (BETWEEN)
WHERE price BETWEEN 10.99 AND 49.99
Named SQL Variable
WHERE sale_date >= @StartDate
Boolean / Flag
WHERE is_active = 1
Real-World Use Cases
ERP & Finance Teams
Replace static reports with live filters. Let finance users run P&L by cost center, compare YTD vs MTD, or filter by GL account—all from Excel without waiting for month-end reports.
WHERE cost_center = 'OPS-100'
AND txn_date BETWEEN '2025-01-01' AND '2025-03-31'
Supply Chain & Logistics
Give partners self-service access without compromising security. Share live inventory or shipment queries that suppliers can filter by their own vendor code.
WHERE vendor_id = 'V123'
AND invoice_date BETWEEN '2025-01-01' AND '2025-03-31'
Sales & Marketing
Enable dynamic campaign reporting. Marketing can filter results by campaign, date range, or region. Sales can pull their own territory numbers without bothering IT.
WHERE campaign_id = 'CMP-0425'
AND event_date BETWEEN '2025-04-01' AND '2025-04-30'
Education & Training
Teach SQL concepts interactively. Students can run queries with different parameters from Google Sheets to see how filters affect results, no database setup required.
WHERE class_code = 'SQL-101'
AND run_date BETWEEN '2025-01-01' AND '2025-02-15'
Types of Filters You Can Create
Query Streams detects and configures eight types of parameters automatically. Each becomes a specific type of input in Excel and Google Sheets:
Security First: How It Protects Your Data
Getting Started
- Write your SQL: Use your normal queries with hard-coded values
- Review detections: Query Streams shows what it found in the Properties tab
- Configure inputs: Toggle on the parameters you want to expose, set defaults and descriptions
- Share the query: Grant access to users who need it
- Users run from Excel/Sheets: They see inputs, enter values, and get live results
No code changes. No infrastructure. Just smarter, self-service reporting.
Learn More
Ready to dive deeper? Explore our live documentation to get hands-on quickly:
- Install the Google Sheets add-on
- Install the Query Streams Agent on Windows
- How to connect Microsoft SQL Server to Excel
- How to connect MySQL to Microsoft Excel
- How to connect PostgreSQL to Google Sheets
- Share live data, not credentials
- Share ERP/CRM/WMS data with partners securely
Frequently Asked Questions
Query Streams automatically detects string literals, numeric values, date values, date ranges (BETWEEN clauses), IN/NOT IN lists, and named SQL variables like @StartDate or :param. Each detected value is mapped to the appropriate input type in Excel or Google Sheets.
Yes. In the Properties tab of the Query Builder, you can choose which detected values become user-configurable inputs and which remain locked. Locked values are applied automatically but never exposed to end users, perfect for security filtering like vendor IDs or cost centers.
No. Users only see the query name and the filter inputs you have configured. The underlying SQL, table names, and database structure remain completely hidden. This is a key security feature that differentiates Query Streams from traditional database connectors.
Absolutely. Each filter supports smart defaults including: specific values, today’s date, start of month, end of month, relative dates like -30 days, and more. Users can change these defaults or run with them as-is.
Yes. The same query with the same filters works identically in both Microsoft Excel and Google Sheets. You can share a query with users regardless of which spreadsheet platform they prefer, and they will see the same filter interface.
Ready to Build Dynamic Reports?
Transform your static SQL queries into interactive, self-service reports for Excel and Google Sheets. Start for free today.
Category: Product Guides
Tags: Microsoft Excel, Google Sheets, Live Data, SQL Server, MySQL, PostgreSQL, Parameters, Filters, Self-Service Analytics, Dynamic Reports, SQL Variables
Meta Description: Transform static SQL into dynamic reports. Query Streams auto-detects filters and creates user inputs for Excel and Google Sheets – no coding required.
Author Bio:
The Query Streams Team comprises seasoned database experts, network security professionals, and enterprise networking veterans with over 25 years of combined experience in data management, analytics, and secure software development.

