DB Compare 10.1.2 is a major upgrade.
DB Compare compares two SQL Server databases and generates a report of any schema differences. Generate Scripts is no longer a work in progress and now works really well.
Purpose: Ensure all copies of a database have the same schema.
Installers are available on the Releases tab located on the right side of this page.
- Tables
- Fields: data type, size, nullable, and other information about each field
- Indexes
- Foreign Key Constraints
- Default Value Constraints
- Views
- Stored Procedures
- Functions
Indexes and Foreign Key Constraints have been completely overhauled. The previous version only handled single-field indexes and foreign keys. Now composite Indexes and Foreign Key Constraints made up of one or more fields are loaded and compared.
Default Value Constraints now check non-numeric defaults, such as GETDATE(), NEWID(), or string defaults like 'Pending'.
Generate Scripts has also gone through a major upgrade:
- Generated tables now keep the same field ordinal order as the source table.
- Indexes and Foreign Key Constraints are now scripted in one pass. Before, this either took two passes or wasn't supported.
- Visual Studio 2026
- SQL Server or SQL Server Express
DB Compare is powered by the NuGet package DataJuggler.NET.Data, which reads the database schema used for each comparison. Version 10.1.2 of the package matches this release.
This project has been around since about 2010, when it was built on the .NET Framework. It has since been updated to .NET 10.
I have to give Claude credit for helping me overhaul how Indexes and Foreign Key Constraints work. This project now does a much better job of comparing two databases.
