Author:

Kamil Klepusewicz

Data Engineer

Date:

Table of Contents

Migrate SQL Server workloads that produce analytics, such as warehouse tables, ETL pipelines and reporting marts. Keep application writes and their transactional dependencies on SQL Server or another operational database.

 

Start with one reporting workload and trace it from source tables to the reports people use. The pilot has to prove that Databricks can keep the data current, reproduce the business rules and serve the reports under expected load.

 

Which SQL Server workloads should move?

 

 

Choose the migration boundary by application behavior. A SQL Server instance can host order entry, nightly transformations and finance reports in the same database. Move the reporting path in waves while the application continues to own orders, commits and corrections.

 

Identify any process that writes reporting results back to an application database before calling a workload read-only.

 

Workload Initial disposition Evidence to collect
Operational tables, triggers and application procedures Keep the transactional system of record on SQL Server or assess a separate operational database migration Write clients, transaction boundaries, failover behavior, enforced keys and latency requirements
Warehouse fact and dimension tables, analytical views and marts Migrate the needed history to governed Delta tables and rebuild the reporting interfaces Grain, keys, retention, update and delete behavior, report dependencies and close-calendar requirements
T-SQL ETL, SSIS packages and SQL Server Agent jobs Translate set-based logic, rebuild orchestration and retain packages temporarily where needed Package parameters, schedules, exit codes, retries, side effects and owners
Low-frequency lookups and temporary reconciliation reads Evaluate Lakehouse Federation while the source remains available Network reachability, source load, query pushdown and the date the dependency should end
Power BI semantic models and other reporting clients Repoint after business and access-control checks pass Measures, refresh policies, source credentials, row-level access and concurrency

 

Record whether each source is self-managed SQL Server on-premises or on a VM, Azure SQL Database, or Azure SQL Managed Instance. For self-managed SQL Server, record the version, edition, patch level, primary or availability-group listener, and the private network path.

 

Azure SQL Database and Managed Instance have different instance features and authentication options. For example, Managed Instance supports SQL Server Agent, while Azure SQL Database uses other scheduling options. Validate the specific source and service tier before choosing an ingestion design. Microsoft’s Azure SQL feature comparison

 

Use these milestones for each migration wave. Phases can overlap. For example, start converting SQL while the historical load runs once the team has agreed on source and target schemas.

 

Migration phase Expected deliverable
Discovery Workload and dependency inventory
Target architecture Agreed migration boundaries, target design and access controls
Data ingestion Reconciled historical load and validated incremental synchronization
Code conversion Validated T-SQL replacements and ETL workloads
Parallel running Business sign-off on reconciled outputs
Cutover Production switch, rehearsed rollback and operational handover

 

What should discovery prove before design begins?

 

Trace one dependency-complete reporting workload from its source to its consumers. Inventory tables, views, functions, procedures, SSIS packages, Agent job steps, linked servers and Power BI models or SSRS subscriptions.

 

Start with SQL Server dependency metadata and job definitions, then check workload history and ask owners about dynamic SQL, file drops, external executables and month-end jobs. A catalog of database objects can miss dependencies that only appear at runtime. SQL dependency metadata and SQL Server Agent tables

 

For each candidate, record its business owner, sources, grain, key rules, freshness target, full load and change volumes, and peak workload. Note which routines depend on local files, server logins, temp tables or cross-database writes.

 

Use the resulting map to pick a first wave with a known rollback path and enough complexity to test deletes, critical metric logic and a real BI refresh. Dateonic’s enterprise data warehouse migration playbook covers how to plan waves across source platforms.

 

Set up Unity Catalog before moving production data. Define who can read raw replicas, who can write curated Delta tables and which BI identities can query the published schemas. Map source roles and service accounts to groups, grants and workload identities.

 

Rebuild SQL Server row-level security or masking with the appropriate target policy, and test with both an authorized reader and a user who should be denied access. Give the ingestion identity only the source privileges required by its chosen capture method and verify the SQL Server TLS certificate. Unity Catalog access controls and SQL Server ingestion user requirements

 

Which tool should move SQL Server data?

 

Choose the ingestion path by freshness, delete handling, source overhead and recovery. The connector examples below use Azure Databricks. Check equivalent cloud documentation if your target is on AWS or Google Cloud.

 

Ingestion path Use it when Check before committing
Lakeflow Connect SQL Server connector You need a managed initial load and incremental replication using SQL Server Change Tracking or Change Data Capture (CDC) Source version and edition, primary access, capture permissions, network and compute prerequisites, retention and type limitations
Lakeflow Connect query-based ingestion or Spark JDBC A reliable cursor supports batch increments, or you need a controlled snapshot Cursor ties, late updates, retries, source load and an explicit path for hard deletes
Bulk export to object storage You need a historical backfill with an approved extraction window and a replayable landing copy Consistent snapshot, export manifest, encryption, throughput and the boundary where incremental capture takes over
Lakehouse Federation You need read-only access for discovery, spot checks or narrow transitional queries Network and permissions, pushdown and load on SQL Server. A foreign catalog keeps queries dependent on the source.

 

Choose the source capture method per table. Change Tracking identifies changed rows by primary key so the connector can retrieve current values. SQL Server CDC records inserts, updates and deletes in change tables and can capture intermediate changes within the retention window. Use CDC when those changes matter or when a table without a primary key qualifies for it. Lakeflow Connect uses Change Tracking if both mechanisms are enabled for a table. The connector documents SQL Server 2012 as the Change Tracking minimum. Verify CDC eligibility for the exact engine version, edition and Azure SQL tier. Audit existing capture consumers before changing their configuration. SQL Server source setup and Azure SQL Database CDC support

 

Configure destination history separately. Even with SQL Server CDC enabled, the Lakeflow Connect default, SCD Type 1 (SCD_TYPE_1), keeps only the current row state. Set scd_type to SCD_TYPE_2 for a target that needs previous row versions. With Change Tracking, Type 2 can preserve only the states observed at each read. To keep intermediate changes in the target, capture the CDC events before SQL Server purges them and apply those events to the Type 2 table. Archive required history before a full refresh, which replaces the target table and removes its previous row versions. Lakeflow Connect history settings and SQL Server table configuration

 

Select a capture architecture explicitly. Standard Lakeflow Connect ingestion on Azure uses a continuously running classic-compute gateway and a separate serverless ingestion pipeline. Integrated CDC combines extraction and application in one pipeline and supports classic or serverless compute with the appropriate network path. Confirm workspace enablement with your Databricks account team and verify the supported authentication for your source. Integrated CDC runs in triggered mode by default. Continuous mode is in Beta. Integrated CDC enablement and pipeline requirements

 

Test source failover and schema changes before committing to a cutover date. For SQL Server availability groups, the documented Change Tracking path requires a full refresh after a source node change. Profile large object values too. The connector documents cases where oversized values become empty without a pipeline error. SQL Server connector limitations

 

For a custom backfill, prove the handoff from snapshot to changes. Tie the consistent extract to a source checkpoint, such as a CDC log sequence number, using a procedure that accounts for writes occurring during the extract. Use Change Tracking versions if that is your capture method. Apply only the changes required after the snapshot boundary, and persist the last applied checkpoint only after the target batch commits. Make replays idempotent and monitor lag against retention. If changes expire before they are captured, rebuild and reconcile the affected data. On a static extract, the incremental phase can be skipped. SQL Server CDC administration and working with Change Tracking

 

If you land raw change events for a custom pipeline, Dateonic’s guide to applying change events with AUTO CDC covers event sequencing and delete handling.

 

With Spark JDBC, cap parallel connections at a level the source can sustain and use an explicit filter for a bounded extract. The partition bounds set the partition stride. A timestamp cursor can capture eligible inserts and updates. To propagate hard deletes, use CDC, source tombstones or a separate deletion comparison.

 

Lakeflow Connect also offers API-only hard-deletion tracking in Beta for query-based ingestion. It requires configured primary keys and excludes SCD Type 2 targets. Spark JDBC options and query-based deletion tracking

 

What can you convert, and what needs engineering work?

 

Use conversion tools to generate a first pass for supported objects. Classify outputs by effort: translate views and set-based queries, review procedures with engine-specific semantics, and redesign routines whose effects depend on SQL Server Agent, transactions or external services.

 

Path Practical use Owner’s review
Databricks Labs Lakebridge Transpile supported SQL Server T-SQL with the documented tooling. The BladeBridge matrix lists experimental SSIS-to-Spark SQL conversion. Pin and pilot the tool on representative source files, including scripts with dependencies. Use the generated output to estimate remediation.
Genie Migrate for Lakehouse Use the generally available T-SQL-to-Databricks-SQL path to generate and review converted workspace files. Notebook and Spark Declarative Pipelines targets have Beta constraints. Check Genie Code and workspace requirements. Approve inputs for the workspace and compare outputs with source behavior. The documented T-SQL path converts code. Move data separately and budget for SSIS engineering.
Lakeflow Jobs, an existing orchestrator, or Azure-SSIS Integration Runtime Rebuild Agent schedules and package control flow in Lakeflow Jobs or the existing orchestrator. On Azure, evaluate Azure Data Factory with Azure-SSIS IR for eligible packages that must keep running during a transition. Map credentials, sequence and failure paths, parameters, notification routing, backfills, and rerun behavior. Inspect SSIS script tasks, third-party components and file dependencies individually.

 

Databricks SQL supports Unity Catalog stored procedures and SQL scripting. Port each routine according to its contract. A set-based dimension load may fit SQL. A procedure that mixes DDL, retryable updates, Agent side effects and cross-database writes may need separate tasks.

 

Databricks supports multi-statement and multi-table transactions on eligible compute with supported Unity Catalog write targets and catalog commits enabled. Review the supported operations and test concurrent writes and retry handling before migrating a procedure that relies on SQL Server’s transaction semantics. Stored procedures and Databricks transactions

 

Compatibility check Migration decision
Keys and identity Preserve existing source keys for joins and reconciliation. Test uniqueness and orphan checks explicitly because declared primary and foreign keys in Databricks are informational. Use generated target identities only where needed. Delta identity columns disable concurrent transactions on the table. Constraints and identity columns
Types, timestamps and strings Test the chosen connector’s mappings with representative values. Check decimal precision and rounding, offsets and precision for datetimeoffset and datetime2, and comparison behavior for case, accents and trailing spaces. Treat SQL Server rowversion as a binary version token. Reproduce the reporting time zone and use edge cases such as daylight-saving transitions to validate business date logic. SQL Server date and time types and Databricks data types
Indexes and physical layout Use SQL Server plans and index usage to identify common predicates and joins. Design Delta layout from the target query profile, then consider liquid clustering on suitable tables where filtering and data skipping justify it. Liquid clustering

 

For a receivables aging rule, establish whether a day means a calendar boundary or a full elapsed day. SQL Server’s DATEDIFF for day counts day boundaries crossed. Databricks timestampdiff for DAY counts complete 24-hour units in UTC. With timestamps a minute apart on either side of UTC midnight, those definitions give a different aging bucket if the cutoff is one day. SQL Server date differences and Databricks timestamp differences

 

What should pass before reporting cuts over?

 

Run both reporting paths at the same business cutoff, and record the applied source checkpoint for each comparison. Reconcile counts, key coverage, duplicates, deletes and financial totals by relevant partitions or entities.

 

Compare representative rows and trace any mismatch through extraction, type conversion and business logic. A balanced grand total can hide offsetting discrepancies between stores, legal entities or accounting periods. See Dateonic’s migration testing strategy for the broader sign-off process.

 

For Power BI, test a copy of the semantic model against its new Databricks data source with its production identity and representative audience roles. For Import, validate refresh duration, incremental refresh and post-refresh totals.

 

For DirectQuery, measure visual latency and warehouse concurrency under realistic demand. Reconcile measures, filters and row-level access in the published model before repointing subscriptions or downstream reports. Azure Databricks Power Query connector

 

Illustrative first wave. An on-premises SQL Server holds invoice headers and lines, and an Agent-scheduled SSIS package feeds a Power BI receivables model. Keep invoice writes on SQL Server. If finance requires each status change between refreshes, validate CDC for both tables and coordinate publication of the header and line marts at the same cutoff. Before repointing Power BI, replay a backdated credit and a void that deletes lines, then compare open balances by invoice and currency. Confirm that replaying the same changes after a failed target run leaves those balances unchanged.

 

Use business-owned cutover gates for replication lag, reconciliation exceptions, report refresh and query performance. Measure tail latency under realistic concurrency, including warehouse startup if users encounter it. Route a pilot group to Databricks first. Keep the SQL Server reporting path current for a defined rollback window and rehearse switching connections, refreshing the model and confirming the next scheduled job on the old path. Route any downstream writes or notifications to one active producer during parallel operation. A connection switch will not reverse a payment export or duplicate file delivery.

 

In Dateonic’s published retail migration case study, a Nordic retailer moved analytics from on-premises SQL Server to Azure Databricks. Dateonic landed raw data in Azure Data Lake Storage and rebuilt transformations. Bronze held replayable source data, Silver contained conformed entities and Gold served marts for sales, stock availability and replenishment. Terraform defined separate development, test and production workspaces, along with storage, catalogs, clusters, jobs and permissions. Service principals executed production writes. The old and new pipelines ran in parallel, and business owners approved the reconciled outputs before the on-premises analytics job was switched off.

 

How should you compare cost and optimize after cutover?

 

Price the first wave as three states: the SQL Server baseline, the parallel run and the expected steady state. Estimate one-time effort from the pilot’s inventory and conversion results, including the manual work needed for SSIS, procedural SQL, security, BI and validation.

 

In steady state, allocate ingestion, transformation and SQL warehouse charges to the workloads they serve. On Azure, price classic compute using both Databricks units (DBUs) and Azure VMs. Apply the relevant serverless rate when using serverless compute. Include storage, network charges and retained SQL Server capacity where applicable, using actual regional and contract rates. Azure Databricks pricing and Databricks billing system table

 

Compare cost per successful refresh or reporting cycle at equivalent freshness, query concurrency and service levels. Include retries, failed refreshes and peak demand. After cutover, use the measured query and job profiles to adjust warehouse sizing, schedules and table layout.

 

Count SQL Server license or infrastructure savings only after the asset is eligible for retirement under your contract and the remaining OLTP, BI, backup and recovery dependencies have been checked. Microsoft SQL Server licensing guidance

 

To turn those estimates into a funding decision, use Dateonic’s migration ROI and business case framework to model payback and test how a delay in retiring SQL Server capacity affects it.

 

If you are planning a SQL Server migration, Dateonic’s Databricks migration assessment can help you scope the first wave, identify the compatibility work and define the evidence your team will need before cutover.