View Categories

How to Connect Microsoft SQL Server to Google Sheets – Stream Live Database Data

5 min read

CONNECTOR GUIDE

SQL Server Google Sheets

SQL Server SQL Server
Query Streams Query Streams
Google Sheets Google Sheets
No VPN Required
Live Data
Secure

Query Streams enables you to connect Microsoft SQL Server databases directly to Google Sheets, streaming live data without VPNs, firewall changes, or complex configuration. Sign up for free at QueryStreams.com and start pulling live enterprise database data into your spreadsheets in minutes.

This guide shows you how to establish a secure, real-time connection between your Microsoft SQL Server database and Google Sheets. Whether you’re running on-premise SQL Server, Azure SQL Database, AWS RDS, or Google Cloud SQL, Query Streams provides a simple solution for building live dashboards, automating reporting, and securely sharing database queries with teams worldwide.

Enterprise Security

Outbound-only connections, credentials stay on your network

Real-Time Queries

Execute T-SQL queries and get fresh data instantly

Global Access

Share queries worldwide without exposing credentials

Works Everywhere

On-premise, Azure, AWS RDS, Google Cloud SQL

What You’ll Accomplish

By the end of this guide, you’ll be able to:

  • Connect Google Sheets to SQL Server – On-premise, Azure, AWS RDS, or Google Cloud SQL
  • Execute T-SQL queries in real-time from Google Sheets
  • Build live dashboards and reports with auto-refreshing data
  • Share secure database access with colleagues globally

Prerequisites

1

Query Streams Account

Create a free account to get started with SQL Server integration.

Create Free Account →
2

Query Streams Agent Installed

Install the agent on your network with access to your SQL Server instance.

Install the Query Streams Agent →
3

SQL Server Access

Database username and password with appropriate read permissions.

SQL Server Permissions Guide →
Cloud SQL Server Support: Query Streams works with Azure SQL Database, AWS RDS for SQL Server, and Google Cloud SQL. Install the agent in the same cloud region for optimal performance.

Step 1: Access the Query Streams Agent Interface

1
2
3
4
5
6
7

With your agent installed and running, configure your SQL Server connection through the local agent interface.

  1. Open your web browser and navigate to the agent interface: https://localhost:1823
  2. Navigate to Data Connections: Click Data Sources in the sidebar, then select Connections
  3. Add a new connection: Click the Add Connection button
Note: If you selected a different port during installation, replace 1823 with your chosen port number.

Step 2: Select Microsoft SQL Server as Your Connection Type

2
3
4
5
6
7

After clicking “Add Connection,” you’ll see the New Connection wizard.

  1. Choose Microsoft SQL Server: Click on the Microsoft SQL Server tile (it will highlight with a green border when selected)
  2. Alternative – Use search: Type “SQL Server” in the search bar to quickly find it
  3. Proceed to next step: Once selected, click Next

Step 3: Configure Your SQL Server Connection Details

3
4
5
6
7

You’re now on Step 2: Configure Connection where you’ll enter your SQL Server credentials.

Required Connection Details:

  1. Connection Name (required) – A friendly name like “Production SQL Server” or “Azure SQL DB”
  2. Server (required) – Hostname or IP address. Examples: 192.168.1.100, myserver.database.windows.net, localhost
  3. Port (required) – Default is 1433. Change only if using a custom port.
  4. Database (required) – Specific database name (e.g., Northwind, AdventureWorks)
  5. Username (required) – SQL Server login or Windows authentication account
  6. Password (required) – Database password (click eye icon to toggle visibility)
  7. Connection Timeout – Default 30 seconds. Increase for slower networks.

Once all fields are completed, click Next to proceed.

Performance Tip: Install the Query Streams agent on the same network as your SQL Server for optimal latency and query execution speed.

Step 4: Select Your Data Realm

4
5
6
7

A Data Realm determines your query processing capacity – how much data can flow through your queries, measured in MB/GB based on your subscription.

Important: This is NOT storage for your database. Your SQL Server data stays on your servers. This represents processing capacity for query results streaming through Query Streams.
  1. Review available realms: You’ll see options based on your subscription tier
  2. Select your realm: Choose “Default Data Realm” for most use cases
  3. Click Next to test the connection

Step 5: Test Your Database Connection

5
6
7

Query Streams will verify your SQL Server is accessible with the credentials provided.

  1. Automatic testing: The agent attempts to connect to your SQL Server
  2. Review results: Success shows server version, database name, and connection details
  3. Click Next if successful
Troubleshooting: If connection fails, verify server address, port 1433 is accessible from the agent, and credentials are correct. Check SQL Server firewall rules allow connections.

Step 6: Finish Setup

6
7
  1. Review configuration: Verify all settings are correct
  2. Click Finish to save your SQL Server connection

Your SQL Server connection is now ready! Next, install the Google Sheets add-on to start querying.

Step 7: Install Add-On and Run Your First Query

7

Install the Query Streams add-on from Google Workspace Marketplace:

After installation, open the add-on from Extensions > Query Streams and create your first T-SQL query:

  1. Click “Stream a Query”
  2. Select your SQL Server connection from the Data Source dropdown
  3. Choose the database from the Database dropdown
  4. Write your T-SQL query:
Example SQL Server Query T-SQL
SELECT TOP 100
    CustomerID,
    CompanyName,
    ContactName,
    City,
    Country
FROM Customers
ORDER BY CompanyName;
  1. Configure destination: Choose “Create a new tab”
  2. Click Play to execute

Success!

You’ve connected SQL Server to Google Sheets! Your data streams instantly into a new worksheet. Re-run anytime for the latest data from your database.

Next Steps: Save and Share Queries

Use the Query Streams web portal to build, save, and manage your T-SQL queries:

  • Save queries: Store frequently used T-SQL for easy reuse
  • Add parameters: Create dynamic filters users can adjust without seeing SQL
  • Share globally: Let colleagues run queries from anywhere in the world
  • Access from add-on: Saved queries appear in the “Saved Queries” menu

Frequently Asked Questions

Does Query Streams use Google Apps Script? +

No. Query Streams uses the Google Sheets API directly for superior performance. Unlike Apps Script which has a 6-minute execution limit, Query Streams can handle large SQL Server datasets efficiently.

🔒 Is my SQL Server data secure? +

Yes. Database credentials never leave your network – they stay within the Query Streams agent. Data is encrypted in transit, and the agent makes only outbound connections (no firewall changes or VPNs required).

Can I connect to Azure SQL Database? +

Yes. Query Streams works with Azure SQL Database, AWS RDS for SQL Server, and Google Cloud SQL. Install the agent in the same cloud region for best performance.

👥 Can I share queries with external users? +

Yes! Share saved queries with external users who can run them from anywhere – they’ll get live data without ever seeing your T-SQL code or database credentials.

🚀 How does this compare to ODBC connections? +

Unlike ODBC, Query Streams requires no driver installation on user machines, no VPN configuration, and enables secure sharing where credentials stay protected. It works globally without network restrictions.

Updated on June 3, 2026

Powered by BetterDocs