Getting Started with Lakebridge
This guide walks you through a complete end-to-end migration using SQL Server as the source and Databricks SQL as the target. You will assess your SQL code, transpile it, and validate the output — in about 15 minutes.
Prerequisites: Lakebridge must already be installed. If not, see Installation first.
(Optional) Step 1: Split Your SQL Files
If your SQL code lives in monolithic files that contain multiple objects (stored procedures, tables, views, functions), it is recommended to split them first.
./sqlsplit -d /path/to/your/sql -o /path/to/split/output
-daccepts a directory of.sqlfiles-omust be a directory that already exists- Output is organized into subfolders:
/PROCEDURE,/FUNCTION,/TABLE,/VIEW
See SQL Splitter for full usage and download.
Splitting first gives the Analyzer more granular, per-object results and gives the transpiler a cleaner input.
(Optional) Step 2: Assess Your Code
Run the Analyzer on the (optionally split) files to understand complexity and identify patterns the transpiler may need help with.
databricks labs lakebridge analyze
When prompted, enter the following details:
- Input path:
/path/to/split/output - Source dialect:
mssql - Report file:
/path/to/transpiled/output/output.xlsx - Source technology: Select the number corresponding to
MS SQL Server
The Analyzer produces a complexity report saved as an Excel file (.xlsx). Objects flagged as HIGH or VERY HIGH
complexity may need manual review after transpilation.
See Assessment Guide for more details.
Step 3: Configure Transpilation
During install-transpile (covered in Installation), you are prompted for your migration parameters. For this Getting Started guide, the values to use are:
- Source dialect: Select the number corresponding to
mssql - Input path:
/path/to/split/output - Output directory:
/path/to/transpiled/output - Transpiler: Select the number corresponding to
Morpheus(both Morpheus and BladeBridge support SQL Server, but this guide assumes Morpheus)
If you need to change these settings, re-run install-transpile.
Morpheus is the recommended transpiler for SQL Server migrations — it provides strong correctness guarantees and warns you when it cannot fully guarantee equivalence.
See Which transpiler should I use? if you are migrating from a different source.
Step 4: Transpile
Run the transpilation (if params already configured in previous step):
databricks labs lakebridge transpile
Or pass all parameters inline:
databricks labs lakebridge transpile \
--source-dialect mssql \
--input-source /path/to/split/output \
--output-folder /path/to/transpiled/output
Reading the output:
In the command output, you will see a final summary with all files converted and whether any errors were found.
You may also find inline comments in the output files prefixed with "FIXME" that you'll need to review.
Files with errors still contain as much translated output as possible. Review the flagged positions and fix manually.
Step 5: Reconcile
This step requires configure-reconcile to have been completed during installation. If you skipped it, run it now — see Installation → Configure Reconcile.
After deploying your transpiled SQL to Databricks, run the Reconciler to validate that the data output matches the source.
databricks labs lakebridge reconcile
The Reconciler compares row counts, schema, and data values between your source system and the Databricks target. Results are written to a dashboard in your workspace.
See Reconcile Guide for full configuration details.
What's Next
| Next step | Guide |
|---|---|
| Understand transpiler differences | Which Tool Do I Use? |
| Migrate ETL workloads | Source Systems |
| Customize transpiler output | BladeBridge Configuration, Switch Configuration |