SchemaSmith vs DACPAC

State-based schema management for SQL Server, PostgreSQL, MySQL, and MariaDB — vs SQL-Server-only DACPAC artifacts built from SQL projects.

Chaos vs Precision: Product Comparisons

Quick Summary

SchemaSmith and DACPAC are both state-based, and both are free. The main differences are platform reach and how much tooling each one needs. SchemaSmith covers SQL Server, PostgreSQL, MySQL, and MariaDB from one lightweight CLI with readable JSON files in source control. DACPAC (built from a SQL project authored in VS Code or Visual Studio, applied by the sqlpackage CLI) is SQL Server and Azure SQL only, and compiles the project's SQL files into an XML model artifact before anything deploys.

Technical Comparison

How the tools differ in approach, features, and developer experience.

Aspect SchemaSmith DACPAC / SSDT
Approach State-based, CLI-first State-based, built from a SQL project
Platform Coverage SQL Server, PostgreSQL, MySQL, MariaDB (platform-specific schema definitions) SQL Server & Azure SQL only
Source Format JSON template files (one per table, plus indexed views) and SQL scripts (one per procedure, function, trigger, or ordinary view) SQL files compiled to an XML model artifact (.dacpac)
Authoring Tooling Any text editor or IDE VS Code with the SQL Database Projects extension (SDK-style projects, generally available), or Visual Studio with SSDT
Build / Deploy Steps One-step: SchemaQuench applies state directly Two-step: dotnet build (or MSBuild) compiles to .dacpac, then sqlpackage applies it
PR Readability JSON template diffs read like the change you made SQL files diff cleanly; the compiled .dacpac (XML) does not
Cross-Platform SchemaSmith CLI runs on Windows, macOS, Linux, ARM64 sqlpackage CLI runs on Windows, macOS, Linux; SDK-style SQL projects build on .NET 8+ on any of them; SSDT in Visual Studio is Windows only
Drift Detection Built-in — compares live database to declared state on every run sqlpackage /Action:DeployReport on demand
Reference Data Declarative DataDelivery blocks; two-pass FK-aware loader Pre / post-deploy scripts authored by hand
Failed Deployment Recovery Checkpoint & resume (--ResumeQuench); skips completed work on retry Re-run sqlpackage; manual cleanup if mid-deploy state is partial
Conditional Deployment ShouldApplyExpression — one file applies per database, env, or version SSDT publish profiles per environment
SQL Server Availability Groups Target:SecondaryServers — primary plus secondaries quenched in parallel Apply per server; orchestration is the deployer’s problem
Customization Custom script folders — declare your own deployment slots and ordering Pre / post-deploy hooks, publish-profile flags
Licensing Free under SSCL v2.0 (source-available); unlimited seats Free: sqlpackage is a free Microsoft download, and SDK-style SQL projects build with the .NET SDK

Production-resilience features, free

Checkpoint & resume, two-pass FK-aware data delivery, ShouldApplyExpression, secondary servers for SQL Server Availability Groups, and custom script folders all ship in the free CLI. For teams running DACPAC against AGs or multi-environment SQL Server fleets, that’s orchestration you would otherwise script around sqlpackage by hand.

Choose SchemaSmith when...

  • You manage SQL Server, PostgreSQL, MySQL, and MariaDB — or expect to expand beyond SQL Server
  • You prefer a self-contained CLI over a SQL project build + sqlpackage toolchain
  • You need declarative reference-data delivery (DataTongs + DataDelivery) bundled with schema deployment
  • You need checkpoint and resume on long deployments and per-object granular control
  • You need secondary-server support for SQL Server Availability Groups

Choose DACPAC when...

  • You are SQL Server / Azure SQL only and have no plans to expand to other database platforms
  • You have established SSDT projects and team expertise you want to keep
  • Your CI/CD is tightly integrated with Azure DevOps and the publish-profile model fits your workflow
  • You prefer Microsoft’s first-party schema-deployment artifact and the sqlpackage toolchain
  • You are comfortable with the SSDT model, MSBuild targets, and the .dacpac compile-then-apply lifecycle

Tooling & Workflow

Both tools are free. The comparison is about tooling weight and developer workflow.

Aspect SchemaSmith DACPAC / SSDT
Cost $0/year — free for any purpose, any organization, any scale Free (sqlpackage is a free Microsoft download; SDK-style SQL projects build with the .NET SDK, and SSDT ships with Visual Studio)
Authoring Dependency Any text editor or IDE; JSON template files in source control A SQL project, authored in VS Code, SSMS, or Visual Studio with SSDT
Deployment Pipeline One step: SchemaQuench applies declared state directly Two steps: the SQL project builds to a .dacpac, sqlpackage applies it
Source-Control Diffs Per-object JSON files; diffs read like the change you made Source SQL files diff cleanly; the compiled .dacpac (XML) does not
Cross-Platform Authoring Yes — CLI and JSON files run anywhere Yes with SDK-style SQL projects (VS Code, .NET 8+); SSDT in Visual Studio is Windows only; sqlpackage CLI runs cross-platform

What you trade

Both tools cost $0. The trade-off is workflow shape: SchemaSmith’s lightweight CLI + JSON templates buys you a one-step deploy with no build, and multi-database coverage out of the box. SQL projects + sqlpackage buy you Microsoft’s first-party SQL Server toolchain, now cross-platform through SDK-style projects, and tight Azure DevOps integration. Pick the one that matches how your team already works — and the platforms you actually have to support.

Migrating from DACPAC

Switching from DACPAC / SSDT to SchemaSmith starts with one extraction. Run SchemaTongs once to capture current state as a package of JSON and SQL scripts, and that package becomes your new source of truth.

  1. Extract current state with SchemaTongs. Point it at a representative database and let it capture tables and indexed views as JSON template files, and stored procedures, functions, ordinary views, and triggers as SQL scripts.
  2. Review the captured package. The package replaces the SSDT project as the source of truth — commit it to source control alongside the rest of your repo.
  3. Deploy with SchemaQuench. Future schema changes are edits to the package: a table change is an edit to its JSON, and a stored procedure change is an edit to its SQL script. SchemaQuench generates and applies the DDL on every run, idempotently.
  4. Simplify the pipeline. Replace MSBuild + sqlpackage with a single SchemaQuench invocation. The .dacpac compile step disappears.

Your SSDT project stays on the shelf as a record of how the database got here. SchemaSmith takes over schema management from the current state forward.

Pricing and feature data last verified November 2026. Competitor information may change.

Hands-on lab

Replace SQL projects and compiled .dacpac artifacts with JSON templates and SQL scripts in source control.

Start the DACPAC lab

Shape. Strengthen. Succeed.

Free schema-as-code for SQL Server, PostgreSQL, MySQL, and MariaDB.

The source is on GitHub for anyone to read.

Get Started on GitHub