Windows desktop + command line

Compare SQL Server.
Deploy the difference.

Compare SQL Server schemas, server configuration and data, also across all your environments at once. Generate the deployment script.

SQLTreeo Compare results page with a selected object and a side-by-side script diff
Production compared with Development, Test, Acceptance and Training in one matrix

Every environment.
One comparison.

New in version 0.1.9

Compare Production with Development, Test, Acceptance and any other environment in one run. One matrix shows which tables, procedures, permissions or server settings differ where, and a click opens the comparison of that environment, ready to deploy.

Typical compare tools compare one source with one target at a time. Here every environment is side by side, for database schemas and for server configuration.

See how it works

Three comparisons, one tool

Schema, server and data

Pick the comparison, set the source and target, press Compare. Results are grouped by Only in source, Different, Only in target and Identical, with a side-by-side script diff for every object.

Schema compare

Tables, columns, indexes, constraints, views, procedures, functions, triggers, sequences, synonyms, user-defined types, users, roles, permissions and extended properties.

Generates a deployment script from source to target and can run it against the target inside a transaction.

How to compare two databases

Server compare for DBAs

Server properties, sp_configure, trace flags, logins, server roles and permissions, credentials, linked servers, endpoints, server triggers, audits, database options and files, SQL Server Agent, Database Mail, Resource Governor and Extended Events.

Generates a configuration script that applies the source settings to the target.

How to compare two instances · Agent jobs and logins

Data compare

Row-by-row comparison of matching tables using primary or unique keys. Include or exclude tables and columns with wildcards.

Ideal for reference data and configuration tables that drift between environments.

How to compare table data

No database contents, connection details, passwords, scripts or comparison results are ever transmitted to SQLTreeo. Everything stays on your computer.
Deploy dialog showing the generated script, the number of changes and DROP statements, and the warnings to review

Review every difference before you deploy

Select an object to see its property differences and a side-by-side script diff. Filter by text or object type, show or hide a group with one click on its coloured count, and keep the current group pinned while you scroll.

The deployment script is analysed for DROP and data-loss statements and for steps that need manual work, such as passwords, before anything runs. Deploy inside a transaction, or save the script for your change process.

sqlcompare schema ^
  --source "Server=dev;Database=Shop;Integrated Security=true" ^
  --target "Server=test;Database=Shop;Integrated Security=true" ^
  --script deploy.sql --format html --output report.html

# exit code 0: no differences, 1: differences found, 2: error

Built for pipelines

The sqlcompare command line runs the same engine without the UI. Compare schema, server or data, write an HTML, JSON or text report, generate the script or deploy it straight from CI.

Detect schema drift in a pipeline · Command line reference
What's new dialog listing the changes of an available update, with an Update button

Updates you can read before you install

The desktop app checks for updates at startup and while it runs. What's new shows the release notes of the new version first; installing is one click and the app restarts by itself.

Projects store connections, options and selections. Windows, SQL Server and Microsoft Entra ID authentication are supported. Passwords are saved only when you ask and are encrypted for your Windows account.

Every screen at a glance

See it in action

Click a screenshot to enlarge it.

Requirements

Runs on Windows, talks to any SQL Server

Desktop

Windows 10 or 11. The installer is per user and needs no administrator rights.

Targets

SQL Server 2016 and later, Azure SQL Database and Azure SQL Managed Instance. Server-level sections that do not exist on a platform are reported as warnings.

Command line

Self-contained win-x64 build for build servers and agents. Supply connections as arguments or through environment variables.

Guides

Guides for comparing SQL Server

Step-by-step articles, each with a T-SQL check you can run without the tool.

Compare Development, Test, Acceptance and Production in one run

Check whether Development, Test and Acceptance still match Production: find schema drift across all SQL Server environments of a DTAP (OTAP) street in one comparison.

Read the guide

Find configuration drift across all your SQL Servers

Compare sp_configure settings, trace flags, logins, Agent and database options of one reference SQL Server with all your other instances, in one matrix.

Read the guide

How to compare two SQL Server databases

Find every schema difference between two SQL Server databases: tables, columns, indexes, procedures and permissions. A T-SQL check and the full comparison.

Read the guide

Compare table data between two SQL Server databases

Find the rows that differ between two SQL Server databases: missing rows, extra rows and changed values. With EXCEPT in T-SQL, or for all tables at once.

Read the guide

Compare the configuration of two SQL Server instances

Compare sp_configure settings, trace flags, logins, Agent jobs, Database Mail and database options between two SQL Server instances, and script the differences.

Read the guide

Compare SQL Agent jobs and logins between two servers

Check that two SQL Server instances have the same Agent jobs, operators and logins, for example availability group replicas, and script what is missing.

Read the guide

Detect schema drift in a CI pipeline

Fail a build or raise an alert when a SQL Server database drifts from its reference, with the sqlcompare command line in GitHub Actions or Azure DevOps.

Read the guide

Compare a database with its backup: what changed since last night?

Find which tables, rows and objects changed since a backup was made: restore or copy the backup into a scratch database, then compare it with the live one.

Read the guide
Pricing plan

Try it free for 30 days

Free trial

Free
30 days, every feature
  • Starts automatically on first launch
  • Schema, server and data compare
  • After the trial: comparing and viewing stay free
Download

Named User license

$99
about €87
per named user, for 1 year
  • Copy, save and deploy scripts; export reports
  • The sqlcompare command line
  • One person, up to three computers
  • Schema, server and data compare in one license
  • All updates during the term
  • Support
  • Build or CI servers need a key per server; contact us
Buy now

Ready to compare?

Download SQLTreeo Compare, open it and pick a comparison. The trial starts on first launch and covers every feature.

By installing SQLTreeo Compare you accept the end-user license agreement.