by ElevenFifty Labs
Data warehouses

Azure SQL Database integration

Spark reads Azure SQL Database tables and views into planning tools and business systems, and loads business data into tables the data team chooses, with checks on every run.

The connector

Category: Data warehouses. Status: Available on all plans. How Spark connects: direct, with an app registered in Microsoft Entra ID that has access to the database you choose.

What you can do with Azure SQL Database in Spark

Read tables, views or a read-only query from Azure SQL Database, and load them into Pigment, Anaplan and Workday Adaptive Planning or a business system. Write ERP, HR, CRM and spend data into tables the data team chooses.

Spark reads 2 kinds of data from Azure SQL Database:

  • Every row of a table or view you name
  • Rows of a SELECT you write

What Spark writes to Azure SQL Database

Writes only happen when you tick the permission as you add the Spark. Leave them unticked for a read-only connection.

  • Loads the Circuit's output into a table (made if missing): add rows, replace them, or merge on key columns.

Common use cases for Azure SQL Database data, and why each matters

App data into the plan

Operational data that lives in Azure SQL, such as orders or usage, feeds driver-based plans.

Business data next to app data

ERP and HR data land in Azure SQL beside application data for reporting.

Plan data back for reporting

Plan and forecast versions land in tables that Power BI already reads.

Small warehouse, no new tools

Teams using Azure SQL as their reporting store get business feeds without a separate ELT tool.

Customer health in the forecast

Usage, tickets and renewals stored in Azure SQL feed the revenue forecast, so finance sees risk to renewals before the quarter closes, not after.

Why it's hard without Spark

Azure SQL often holds the data an app team owns, while finance needs a slice of it in the plan. Requests turn into one-off scripts or report exports. Spark lets the data owner scope access to the right schemas, and finance owns the feed on top, with checks that stop a load when a column changes.

How Spark handles Azure SQL Database data

  • Spark does not store the business data it moves: rows pass through memory during a run.
  • Each customer has its own isolated tenant.
  • Credentials are sealed in your company's own vault, never shown again or logged.
  • Anything that writes to a system needs the permission ticked when the Spark is added.

More on the Spark trust center.

Teams that use it

Data and analytics and Finance and FP&A.

Questions

How does Spark connect to Azure SQL Database?

An app client ID and secret. You need a Microsoft Entra admin who can register apps and an admin of the database.

Can Spark write to Azure SQL Database?

Yes, when you allow it. Loads the Circuit's output into a table (made if missing): add rows, replace them, or merge on key columns.

Where are the credentials kept?

Sealed in your company's own vault in your isolated tenant. Spark never shows them again or writes them to logs.

Connection essentials

  • Method: An app client ID and secret.
  • What you need: A Microsoft Entra admin who can register apps; An admin of the database
  • What Spark asks for: Directory (tenant) ID; Server; Database; Application (client) ID; Client secret
  • Vendor documentation: learn.microsoft.com
  • Change detection: rows changed since the last run, by a date or key column you name
  • Limits to know: Spark connects only to public addresses, so the server's firewall must allow Spark

Set it up in 4 steps

  1. In Microsoft Entra ID, register an app named Spark and create a client secret. Copy the directory (tenant) ID, application (client) ID and secret.
  2. In the database, run CREATE USER [Spark] FROM EXTERNAL PROVIDER; then grant it db_datareader, and CREATE TABLE and ALTER, INSERT, UPDATE, DELETE on the schema you load.
  3. In Spark, add an Azure SQL Database Spark and enter the tenant ID, server, database, client ID and secret.
  4. Spark keeps them in your company's own vault and runs SELECT 1 to check they work.

Everything Spark reads from Azure SQL Database

  • Every row of a table or view you name
  • Rows of a SELECT you write

What Spark writes

  • Loads the Circuit's output into a table (made if missing): add rows, replace them, or merge on key columns.

Example Circuit: Azure SQL usage data into Pigment

Each mapping is written in Excel syntax, so finance can read and change it.

  • Month: =TEXT([UsageDate],"yyyy-mm"), the plan's month
  • Customer: =XLOOKUP([AccountId],CustMap[App],CustMap[Plan]), the plan customer
  • Units: =[Units], the driver value
  • Version: ="Actuals", the plan version

Checks to set on this feed

  • Totals tied out between the query and the plan after every load
  • Flag schema changes before they break a load
  • Replace only the keys or period in the window

How setup works

  1. Start a Spark. Sign in or paste a key. Spark checks the access the key grants and warns before it expires. If someone else owns the system, Spark sends them a setup request with the security context they need.
  2. Build a Circuit with Ask Spark. Describe the feed in plain English. Ask Spark drafts the mapping in Excel syntax and waits for your approval.
  3. Let it run. On a schedule, when a file lands, or when the source changes, with checks before anything is written and alerts by email, Slack, Teams or the Spark mobile app.

Security

Each customer runs in its own isolated tenant with its own encryption key and credential vault. Business data passes through memory during a run and is never stored. Writes to systems of record need their own permission, and ERP journals arrive as drafts by default. See Spark security.

See it with your own systems

Book a 30-minute demo built around the systems you use. Spark starts at $5,000 a year, with every connector on every plan. See pricing, security and the connector library.