SQL Server to Databricks Migration: A Practical Guide to Transitioning to the Lakehouse Architecture

 & LatentView Analytics

LatentView Analytics has been helping enterprises make data-driven decisions for nearly 20 years. The company brings deep expertise in data engineering, business analytics, GenAI, and predictive modeling to 50+ Fortune 500 clients across tech, retail, financial services, and CPG. A publicly traded company serving the US, India, Canada, Europe, and Singapore, LatentView is recognized in Forrester's Customer Analytics Service Providers Landscape.

SHARE

Table of Contents

This guide helps data and technology leaders move SQL Server data warehouses and analytics workloads to Databricks, from choosing an approach and converting T-SQL to replacing SSIS, validating results and cutting over.

SQL Server to Databricks migration moves analytical data, T-SQL logic, SSIS pipelines, SQL Server Agent schedules and reporting from Microsoft SQL Server onto the Databricks lakehouse, governed by Unity Catalog.

Key Takeaways

  • SQL Server to Databricks migration shifts warehouse and analytics workloads onto the lakehouse, while transactional application databases usually stay on SQL Server
  • New Databricks SQL features, including stored procedures, temp tables, cursors and multi-statement transactions, make T-SQL conversion far closer to lift-and-shift
  • Lakebridge, Genie Migrate and Lakeflow Connect cover assessment, code conversion and change data capture from SQL Server
  • Security needs a redesign, since SQL logins, database roles and DENY rules map only loosely to Unity Catalog
  • Small semantic differences, such as ISNULL, collation and TINYINT ranges, decide if reconciliation passes

Why Modernize SQL Server With Databricks

SQL Server estates are being modernized as versions reach end of support, per-core licensing climbs and analytics teams need cloud scale, open formats and AI on the same data.

Timing is the first driver. SQL Server 2016 reached the end of extended support on July 14, 2026, and any warehouse still running on it now faces an upgrade or a move. An upgrade means new hardware, new licenses and the same scaling ceiling, which pushes many teams to ask where the analytics workload should live for the next decade.

The architecture is the second. SQL Server scales vertically, so larger reports and heavier ETL mean a bigger server, and reporting queries compete with nightly loads for the same CPU and memory. Unstructured data, streaming and machine learning sit outside the engine and need separate tools.

Databricks separates storage from compute, so ETL, BI and data science run on independent compute against one governed copy of the data. It is worth being clear about scope, though. Databricks replaces SQL Server as a data warehouse and analytics engine, not as the transactional database under an ERP or line-of-business application, which usually stays where it is and feeds the lakehouse.

SQL Server vs Databricks: Architectural Deep Dive

SQL Server is a single-node relational engine built around indexes and per-core licensing, while Databricks is a distributed lakehouse built on open Delta tables, elastic compute and Unity Catalog.

LayerSQL ServerDatabricks
ComputeOne server, scaled verticallyServerless SQL warehouses and Spark compute, scaled horizontally
StorageDatabase files on local or SAN disksDelta tables in cloud object storage
Performance tuningClustered and nonclustered indexes, statisticsLiquid clustering, data skipping and predictive optimization
ConcurrencyLocks, isolation levels and NOLOCK hintsReaders on Delta see a consistent snapshot of the table
ETLSSIS packagesLakeflow Spark Declarative Pipelines and Lakeflow Connect
OrchestrationSQL Server AgentLakeflow Jobs
SecurityLogins, database roles, DENY, row-level securityEntra ID or IdP identities, Unity Catalog grants, row filters and column masks
PricingPer-core licensesConsumption-based Databricks Units

Two rows change how teams work. Delta tables do not use clustered or nonclustered indexes, so a SQL Server DBA’s tuning work moves to data layout: liquid clustering on frequently filtered columns, and predictive optimization to handle compaction and statistics automatically. Concurrency changes too. Readers on Delta always see a consistent snapshot, so NOLOCK hints, added for years to avoid blocking, can simply be removed.

SQL Server to Databricks Migration Strategy: Choosing the Right Approach

The right SQL Server migration approach depends on how much T-SQL logic exists, how fresh data must be during transition and how much redesign the business is willing to fund now.

There are three broad approaches.

Lift-and-shift converts tables, views and stored procedures as directly as possible. Recent Databricks SQL features make this far more practical than it was: CREATE PROCEDURE with IN and OUT parameters, session-scoped temp tables, cursors and BEGIN ATOMIC transactions all map to familiar T-SQL constructs. It is the fastest route off an expiring SQL Server version, though it carries old design choices along.

Re-engineering rebuilds the warehouse as bronze, silver and gold layers, with ETL rewritten as declarative pipelines. It takes longer and delivers the most, especially where SSIS packages have grown fragile.

A hybrid combines the two. Lakehouse Federation lets Databricks query SQL Server in place, so new workloads start on Databricks immediately while existing ones move in waves, and high-value subject areas are re-engineered while the rest are lifted.

Data movement runs on two tracks in every approach:

NeedOption
Historical loadBulk extract to cloud storage, then COPY INTO or Auto Loader into Delta
Ongoing changesLakeflow Connect SQL Server connector, using change tracking or CDC
Query in placeLakehouse Federation through a Unity Catalog connection
Existing replicationPartner tools such as Qlik Replicate or Fivetran

SQL Server to Databricks Migration Tools

Databricks offers tools for each stage of a SQL Server migration, from Lakebridge assessment and conversion to Genie Migrate, Lakeflow Connect ingestion and automated reconciliation.

ToolWhat It Does for SQL Server
Lakebridge AnalyzerInventories T-SQL objects and scores conversion complexity
Lakebridge convertersBladeBridge and Morpheus convert T-SQL to Databricks SQL, with Switch as an experimental LLM-based option and experimental SSIS support
Genie MigrateConverts T-SQL in migration projects using Genie Code, with Databricks SQL, notebooks or, for T-SQL only, Lakeflow pipelines as targets
Lakeflow ConnectManaged SQL Server ingestion with change tracking or CDC, with 250 or fewer tables recommended per pipeline
Lakehouse FederationQueries SQL Server in place during the transition
Lakebridge ReconcileCompares SQL Server and Databricks tables by schema, row hash and column values

No tool converts every object perfectly. Automated conversion handles the bulk of standard SQL, and engineers focus on the procedures, functions and packages the tools flag.

SQL Server to Databricks Migration Phases

A SQL Server to Databricks migration runs through six phases, from discovery and security design to schema, code, ETL and reporting migration, then parallel running and cutover.

Phase 1: Discovery and Assessment

SQL Server keeps most of what a migration needs to know in its own metadata. A good inventory pulls from:

  • sys.objects and sys.sql_modules for tables, views, procedures and functions
  • msdb for SQL Server Agent jobs, schedules and history
  • The SSIS catalog (SSISDB) for packages, environments and execution history
  • Linked servers, cross-database queries and CLR assemblies
  • Query Store or DMVs for the most expensive and most frequent queries

Lakebridge Analyzer then scores the T-SQL estate by complexity. It reads SQL Server, SSIS and SSRS sources, so one pass covers T-SQL code, packages and reports.

Phase 2: Unity Catalog Design and Security Mapping

SQL Server’s database.schema.object naming maps naturally to Unity Catalog’s catalog.schema.object, with catalogs typically split by environment or business domain. Security needs more thought, because several SQL Server concepts do not carry over:

SQL ServerUnity Catalog
SQL loginsEntra ID or identity provider users and groups
Database rolesAccount groups with explicit grants
DENYOnly ABAC DENY policies, in Beta, so permissions are mostly redesigned around grants
INSERT, UPDATE, DELETEMODIFY, or fine-grained INSERT, UPDATE and DELETE privileges in Beta
Row-level security and dynamic data maskingRow filters and column masks

Phase 3: Schema and Data Migration

Most DDL converts with type adjustments. A few mappings cause quiet reconciliation failures:

  • TINYINT: SQL Server stores 0 to 255, Databricks TINYINT is signed, so use SMALLINT
  • MONEY: maps to DECIMAL(19,4)
  • DATETIME and DATETIME2: map to TIMESTAMP_NTZ, which keeps six fractional digits by default while DATETIME2 can hold seven, and DATETIMEOFFSET maps to TIMESTAMP, which stores the value in UTC and drops the original offset
  • UNIQUEIDENTIFIER and NVARCHAR: map to STRING
  • IDENTITY: becomes an identity column on BIGINT, using GENERATED BY DEFAULT AS IDENTITY when historical loads must keep existing IDs

Collation deserves its own check. SQL Server collations can be case-insensitive, while Databricks compares strings case-sensitively by default, so a join or filter on ‘ACME’ and ‘Acme’ can return different rows. Databricks collations such as UTF8_LCASE restore case-insensitive behavior where the business depends on it.

Indexes are dropped, not converted. Liquid clustering on the columns that indexes used to serve replaces them. Data then moves in two passes: a historical bulk load, followed by Lakeflow Connect replicating changes until cutover.

Phase 4: T-SQL Code and Stored Procedure Conversion

Lakebridge converters or Genie Migrate produce the first version, and engineers resolve what they flag. Most differences are well documented:

T-SQLDatabricks SQL
SELECT TOP 10LIMIT 10
ISNULL(a, b)COALESCE(a, b), since Databricks isnull() returns a boolean
GETDATE()current_timestamp()
#temp tablesCREATE TEMP TABLE
WITH (NOLOCK)Removed
TRY…CATCHDECLARE EXIT HANDLER
CursorsSupported since Databricks Runtime 18.1, though set-based SQL is faster

The ISNULL case catches many teams: the two-argument form fails on Databricks, and a hurried fix to isnull(a) silently returns true or false in place of the value. Stored procedures themselves now convert with their structure intact:

CREATE OR REPLACE PROCEDURE sales.gold.load_daily_sales(run_date DATE)
LANGUAGE SQL
SQL SECURITY INVOKER
AS BEGIN
  DELETE FROM sales.gold.daily_sales WHERE sale_date = run_date;
  INSERT INTO sales.gold.daily_sales
  SELECT sale_date, store_id, SUM(amount)
  FROM sales.silver.sales
  WHERE sale_date = run_date
  GROUP BY sale_date, store_id;
END;

Procedures are registered in Unity Catalog, so access to them is governed by Unity Catalog permissions.

Phase 5: SSIS, SQL Agent and Reporting Modernization

SSIS packages need a conversion path of their own. Data flows become Lakeflow Spark Declarative Pipelines or SQL, control flows become task dependencies in Lakeflow Jobs, and SQL Server Agent schedules become job triggers. Automated conversion helps, but Lakebridge lists SSIS support as experimental, so converted packages need engineer review and testing before they are trusted.

Reporting moves in step. Power BI datasets are repointed to Databricks SQL warehouses, which is straightforward when the gold layer keeps the schemas reports expect. SSRS reports are rebuilt as AI/BI dashboards or Power BI reports, prioritized by usage. Materialized views in Databricks SQL can also speed up dashboards built on aggregations.

Phase 6: Parallel Run and Cutover

Both platforms run side by side for an agreed period, fed by the same sources, while the validation framework below compares their outputs. During the overlap, Lakebridge Reconcile runs against both platforms, and Power BI reports can be pointed at each side to compare what users see. Lakehouse Federation keeps SQL Server queryable in place while the last workloads move. Once the results match, workloads switch over to Databricks and the SQL Server Agent jobs are retired.

SQL Server to Databricks Validation Framework

A SQL Server validation framework compares structure, volumes, aggregates and individual records between the two platforms.

SQL Server has one advantage over many sources: Lakebridge Reconcile can read it directly, so no baseline export is needed. Reconcile compares schemas, row hashes and column values between a SQL Server table and its Delta equivalent.

Checks build in order:

  1. Existence and structure: every table, column and data type is present
  2. Counts: total rows and rows per partition, such as per day
  3. Aggregates: SUM, MIN, MAX and AVG on numeric columns, plus COUNT(DISTINCT) and null counts per column
  4. Records: keyed comparison to isolate the exact rows that differ

Validation then extends to Power BI, comparing the same report against both sources, because a matching table can still produce a different visual if a measure depended on SQL Server behavior such as collation.

SQL Server to Databricks Migration Best Practices

Strong SQL Server migrations keep transactional systems in place, redesign security, replace index tuning with data layout and treat Power BI as part of the migration scope.

Keep OLTP Databases Where They Are

Application databases serve transactions, not analytics. Leave them on SQL Server and stream their changes into the lakehouse with Lakeflow Connect.

One setup keeps ERP, CRM and order databases exactly where they are, while change tracking feeds bronze tables on a schedule as frequent as the business needs. Reporting queries then leave the production servers entirely. Lakeflow Connect reads from the primary SQL Server instance, because change tracking and CDC are not supported on read replicas or secondary instances.

Replace Cursors With Set-Based SQL

Cursor support makes a direct conversion possible, but a row-by-row loop that took minutes on SQL Server will not get faster on distributed compute. Rewriting the heaviest cursors as set-based MERGE or INSERT … SELECT statements lets the engine work on whole sets of rows in parallel instead of one at a time. Cursor support, meaning DECLARE CURSOR with OPEN, FETCH and CLOSE, arrives in Databricks Runtime 18.1, and the cursors the conversion tools flag are the first candidates for a rewrite.

Redesign Security Instead of Copying It

DENY rules, nested database roles and SQL logins accumulated over years rarely reflect current policy. Rebuild access around Entra ID groups, grants at catalog and schema level, and row filters for sensitive data. Privileges granted on a schema apply to current and future objects within it, so a handful of group-level grants can replace years of object-by-object permissions. Row filters and column masks cover row-level security and dynamic data masking, and ABAC DENY policies, still in Beta, cover the cases that need an explicit denial.

Plan Power BI Repointing From the Start

DecisionWhy It Matters
Keep gold schemas aligned with existing datasetsRepointing becomes a connection change
Choose DirectQuery or Import per datasetDirectQuery suits real-time analytics, and serverless SQL warehouses suit high-concurrency, low-latency reports
Use materialized views for aggregationsAggregates are precomputed in Databricks SQL, which speeds up dashboards

Let Databricks Handle Layout and Maintenance

DBAs used to rebuilding indexes and updating statistics can hand much of that work to the platform. Liquid clustering and predictive optimization keep Unity Catalog managed tables fast without scheduled maintenance windows. Predictive optimization runs OPTIMIZE, VACUUM and ANALYZE on those tables, and liquid clustering replaces both partitioning and ZORDER, so there is no index rebuild schedule to carry over. Our Databricks cost optimization guide covers spend controls, and our Unity Catalog migration guide covers governance setup.

SQL Server to Databricks Migration Roadmap

A SQL Server migration roadmap moves from assessment and foundation to a pilot subject area, then waves of data, code, ETL and reports, ending with SQL Server decommissioning.

  1. Assess and plan: Inventory objects, Agent jobs and SSIS packages, score complexity with Lakebridge, and agree the approach per subject area.
  2. Build the foundation: Set up Unity Catalog, identity integration, networking to SQL Server and Lakeflow Connect pipelines for ongoing changes. Train analysts on Databricks SQL warehouses, and give engineers moving from SSIS hands-on practice with declarative pipelines.
  3. Prove it on a pilot: Migrate one subject area end to end, including its procedures, SSIS packages and Power BI reports, and use it to set conversion and validation templates.
  4. Migrate in waves: Move the remaining subject areas, reusing the conversion and validation templates from the pilot. Run Lakebridge Reconcile on each wave’s tables, and bring business users in early so they can test their own reports against Databricks.
  5. Decommission: Retire the SQL Server servers once their workloads run on Databricks and Lakeflow Jobs have taken over the SQL Server Agent schedules.

Our Databricks migration guide covers how this roadmap fits a broader platform strategy.

How LatentView Helps With SQL Server to Databricks Migration

As a Databricks Elite C&SI partner, we bring a Databricks Center of Excellence of 400 data engineers, with 150+ certified specialists. For a global automotive supplier, we modernized the full data platform on Databricks in under two months, rebuilding pipelines with Spark, enforcing governance through Unity Catalog and automating deployments, as this case study shows.

Moving a SQL Server warehouse takes more than converting code. We assess the T-SQL, SSIS and SQL Server Agent estate, redesign security around Unity Catalog, and convert and validate workloads in waves, using MigrateMate, our automated migration accelerator, to speed up the repeatable work. Plan your migration with our Data Engineering Expert.

Frequently Asked Questions

1. Can T-SQL Stored Procedures Run on Databricks?

Yes. Databricks SQL supports stored procedures, temp tables, cursors and SQL scripting, so most procedures convert with their structure intact.

2. Does Lakebridge Support SQL Server?

Yes. Lakebridge supports SQL Server for assessment, T-SQL conversion and reconciliation, with SSIS conversion available as an experimental option.

3. How Is SQL Server Data Kept in Sync During Migration?

The Lakeflow Connect SQL Server connector replicates ongoing changes using change tracking or CDC until cutover.

4. What Replaces SSIS and SQL Server Agent on Databricks?

Lakeflow Spark Declarative Pipelines replace SSIS data flows, and Lakeflow Jobs replace SQL Server Agent schedules and dependencies.

5. Should OLTP Databases Move to Databricks?

Usually not. Transactional application databases stay on SQL Server, and their changes stream into Databricks for analytics.

LatentView Analytics has been helping enterprises make data-driven decisions for nearly 20 years. The company brings deep expertise in data engineering, business analytics, GenAI, and predictive modeling to 50+ Fortune 500 clients across tech, retail, financial services, and CPG. A publicly traded company serving the US, India, Canada, Europe, and Singapore, LatentView is recognized in Forrester's Customer Analytics Service Providers Landscape.

CATEGORY

LatentView Analytics has been helping enterprises make data-driven decisions for nearly 20 years. The company brings deep expertise in data engineering, business analytics, GenAI, and predictive modeling to 50+ Fortune 500 clients across tech, retail, financial services, and CPG. A publicly traded company serving the US, India, Canada, Europe, and Singapore, LatentView is recognized in Forrester's Customer Analytics Service Providers Landscape.

Take to the Next Step

"*" indicates required fields

consent*

Related Blogs

This guide helps data and technology leaders plan an SAP to Databricks migration, from choosing the…

This guide helps data and technology leaders plan an Informatica to Databricks migration, from choosing a…

This guide helps data and technology leaders plan an Oracle to Databricks migration, from understanding the…

Scroll to Top