Published: 2026-12-01

Compare two SQL Server databases on a Mac: SqlPackage, VS Code and a schema compare GUI

The usual SQL Server schema compare tools are Windows applications: the Schema Compare that SSMS gained in 2026, Visual Studio with SQL Server Data Tools, Redgate SQL Compare and dbForge Schema Compare. Azure Data Studio, which ran on macOS, was retired on February 28, 2026. On a Mac that leaves Schema Compare in the MSSQL extension for Visual Studio Code, Microsoft’s SqlPackage command line, and a native client with its own schema compare, such as Jam SQL Studio. We ran two of them, SqlPackage and Jam SQL Studio, on November 26, 2026 against two SQL Server 2022 databases that differ in 22 known ways (columns, a default, indexes, a CHECK, a foreign key, a procedure, a view, a table type, a trigger, a sequence, an extended property, a permission, a collation and column order). SqlPackage 170.6.60 found 20 with its default options and all 22 with two options changed, and its script ran once a third option allowed the data loss it had flagged. Jam SQL Studio 1.5.11 found 20 and scripted 18, but SQL Server stopped its script with Msg 5074 until we made three edits by hand. The tables below have the details for each difference.

Which SQL Server schema compare tools run on a Mac

Checked against each vendor’s own pages on November 26, 2026. “Compares” lists what each tool accepts as the two sides; the sources are linked below the table.

ToolRuns on macOSComparesScript or deployCost
SSMS 22 Schema Compare (preview in 22.7, June 9, 2026; generally available in 22.10.2, September 28, 2026)No: Windows 11 and Windows Server onlyDatabases, .dacpac files, SQL projectsUpdates the target or generates a scriptPart of SSMS
Visual Studio with SQL Server Data ToolsNo: Visual Studio is Windows only, and Visual Studio for Mac was retired on August 31, 2024Databases, SQL projects, .dacpac filesUpdates the target or generates a scriptCommunity edition free for individuals and for up to five users in organizations that are not enterprises; otherwise Professional or Enterprise
Azure Data Studio with the Schema Compare extensionRetired on February 28, 2026; no updates or security fixes———
Visual Studio Code with the MSSQL extension (Schema Compare generally available since 1.35.0, August 20, 2025; extension 1.48.0 released November 17, 2026)YesDatabases, .dacpac files, SQL projectsApplies the changes or generates a scriptFree (Marketplace listing)
SqlPackage 170.6.60 (November 24, 2026)Yes, macOS 14 or later: dotnet tool install -g microsoft.sqlpackage or a zip downloadA .dacpac against a database or another .dacpac (two live databases needed a .dacpac first in our test)XML report (DeployReport), deployment script (Script) or a direct deployment (Publish)No price listed; Microsoft Software License Terms
Redgate SQL CompareNo: Windows; the command line also runs on Linux from a Docker image, which the product page calls a betaDatabases and snapshots; backups and scripts folders in the Pro editionDeployment script$327 per user per year (1 to 4 users)
Redgate Flyway DesktopYes, Intel and Apple Silicon installersTeams: database comparisons and a schema change diff viewer; Enterprise adds the schema comparison toolTeams: previews the deployment script. Generating versioned migration scripts and state-based deployments are Enterprise featuresTeams and Enterprise prices are not published
dbForge Schema Compare for SQL ServerNot natively: Devart documents running the Windows app in CrossOverDatabases, native backups, database snapshots, scripts folders, source control revisionsSynchronization scriptFrom $239.95 per year
DataGrip 2026.3Yes, Intel and Apple SiliconTwo objects of the same type, such as two schemas (Compare Structure With)Migration statements in a script previewFree for non-commercial use since October 1, 2025; commercial use needs a subscription
Jam SQL Studio 1.5.11Yes, Apple Silicon and Intel buildsTwo live databases, or a Database Blueprint folder and a database; also across enginesGenerated script, opened in a query tab or run from thereFree for personal, non-commercial use up to 200 objects per side; Pro $9.99 a month or $99 a year

Sources (all read November 26, 2026): SSMS release notes, Schema Compare and system requirements; Microsoft Learn schema comparison overview; Visual Studio for Mac retirement; Visual Studio Community; What’s happening to Azure Data Studio; the MSSQL extension’s Schema Compare page, changelog and Marketplace listing; Download SqlPackage; Redgate’s SQL Compare page, requirements and Linux command line, Flyway installers, database comparisons and feature summary by edition; Devart’s Schema Compare page and macOS and Linux installation; JetBrains schema comparison and migration, the DataGrip page and the non-commercial licence announcement. A longer comparison of the commercial tools, including other engines, is in Best Schema Compare Tools.

We ran SqlPackage and Jam SQL Studio. We did not run SSMS, Visual Studio, VS Code, Redgate, dbForge or DataGrip for this post, so their rows describe what their vendors document, not what we measured. SSMS, Visual Studio and VS Code are built on the same DacFx library as SqlPackage, and Microsoft’s overview says their comparison options “are based on the deployment options available in the DacFx .NET library,” but their defaults and their user interfaces are not something we tested.

The two databases

shop_prod plays production: customers, products, orders, order items, addresses, an audit log, an invoice-number sequence, two procedures, a view, a ReportingRole database role and a few rows in each main table. shop_dev plays the development copy: the same schema with the 22 changes below. Both were created on the same SQL Server 2022 instance with its default collation, SQL_Latin1_General_CP1_CI_AS, so nothing else differs. In every comparison shop_dev is the source and shop_prod the target, so a generated script changes shop_prod to match shop_dev.

#Objectshop_prod (target)shop_dev (source)
1Customers.PhoneabsentPhone nvarchar(30) NULL
2Customers.FaxFax nvarchar(30) NULLabsent
3Products.Name typenvarchar(100)nvarchar(200)
4Products.Stock defaultDEFAULT (0)DEFAULT (1)
5Customers.EmailNULLNOT NULL
6Orders column renamedCreatedAtPlacedAt
7Index IX_Orders_CustomerIdabsent(CustomerId)
8Index IX_Products_Name(Name)absent
9Index IX_Customers_Email(Email)UNIQUE (Email) INCLUDE (FullName)
10CK_Products_PriceCHECK (Price >= 0)CHECK (Price > 0)
11OrderItems.ProductIdno foreign keyFK_OrderItems_Products to Products (Id)
12Procedure GetOrderTotalsums all itemsadds AND Qty > 0
13View CustomerOrderCounts3 columnsadds c.Email
14Procedure LegacyDailyReportexistsabsent
15Table type OrderIdListabsentAS TABLE (OrderId int PRIMARY KEY)
16Trigger TR_Orders_SetUpdatedAtabsentAFTER UPDATE on Orders
17Sequence InvoiceNoINCREMENT BY 1INCREMENT BY 10
18MS_Description on Ordersnone'One row per checkout'
19Permission on ProductsnoneGRANT SELECT to ReportingRole
20Products.Sku collation (column has a UNIQUE constraint)SQL_Latin1_General_CP1_CI_AS (database default)Latin1_General_CS_AS
21Table Wishlistsabsent3 columns, primary key, 2 foreign keys, a default
22Addresses column orderCity, PostcodePostcode, City

Three of the changed columns have other objects depending on them, which is common in real schemas. IX_Customers_Email is an index on the column that becomes NOT NULL (5), UQ_Products_Sku is a unique constraint on the column whose collation changes (20), and IX_Products_Name is an index on the column that gets longer (3). In our runs SQL Server refused the nullability and collation changes while the index or constraint was in place (Msg 5074), so a sync script has to drop it first and create it again afterwards. Making Name longer went through with its index still there. The renamed column (6) still has its default constraint, DF_Orders_CreatedAt, bound to it, and the procedure that exists only in production (14) reads that column.

Results by difference

“Found” means the tool listed the difference; the text after it is what the tool’s generated script did about it. The SqlPackage column uses its default options unless a cell names an option. Jam SQL Studio ran at its default Standard depth with every object type selected.

#DifferenceSqlPackage 170.6.60 (.dacpac from shop_dev)Jam SQL Studio Schema Compare (version 1.5.11)
1Column addedFound; ADDFound; ADD
2Column droppedFound and flagged as possible data loss; DROP COLUMNFound; DROP COLUMN
3Column length changedFound; ALTER COLUMNFound; ALTER COLUMN
4Default changedFound; drops and re-adds DF_Products_StockFound; drops the default it finds in the catalog, adds DF_Products_Stock
5NOT NULL added on an indexed columnFound; drops the index first, then ALTER COLUMNFound; ALTER COLUMN runs before the index is dropped: Msg 5074 (flagged by a -- [REVIEW] line)
6Column renamedFound as a drop and an add, inside a rebuild of the table that does not copy the old column’s valuesFound as a drop and an add; the DROP COLUMN fails with Msg 5074 because the default constraint is still bound to it
7Index addedFound; CREATE INDEXFound; CREATE INDEX
8Index droppedFound; DROP INDEXFound; DROP INDEX
9Index changed (unique, INCLUDE column)Found; DROP INDEX, then CREATE UNIQUE … INCLUDEFound as modified (unique, included columns); DROP INDEX, then CREATE UNIQUE INDEX … INCLUDE
10CHECK constraint changedFound; drops it, re-adds it WITH NOCHECK, then checks existing rowsFound; DROP CONSTRAINT, ADD CONSTRAINT
11Foreign key addedFound; ADD CONSTRAINT … WITH NOCHECK, then checks existing rowsFound; ADD CONSTRAINT … FOREIGN KEY
12Procedure body changedFound; ALTER PROCEDUREFound; CREATE OR ALTER PROCEDURE
13View changedFound; ALTER VIEWFound; CREATE OR ALTER VIEW
14Procedure only in the targetNot reported by default; DROP PROCEDURE with /p:DropObjectsNotInSource=TrueFound; DROP PROCEDURE IF EXISTS
15Table type addedFound; CREATE TYPEFound; CREATE TYPE, placed before the tables
16Trigger addedFound; CREATE TRIGGERFound; not in the script
17Sequence option changedFound; ALTER SEQUENCE … INCREMENT BY 10Found; ALTER SEQUENCE with every option restated
18MS_Description addedFound; sp_addextendedpropertyFound (as a table comment); not in the script
19Permission grantedNot in the .dacpac by default; GRANT SELECT when the .dacpac is extracted with /p:IgnorePermissions=FalseNot compared
20Collation changed on a column with a UNIQUE constraintFound; drops UQ_Products_Sku, ALTER COLUMN … COLLATE, re-adds itFound; ALTER COLUMN … COLLATE with the constraint in place: Msg 5074 (flagged by a -- [REVIEW] line)
21Table only in the sourceFound; CREATE TABLE, named defaults, foreign keysFound; CREATE TABLE, foreign keys
22Column orderFound; rebuilds Addresses and copies its rowsNot reported
Found20 of 22 with default options; 22 of 22 with the two options above20 of 22
In the generated script20 of 22; 22 of 22 with the options18 of 22
The script on a copy of shop_prodDefault options: stopped before changing anything, because the tables have rows. With /p:BlockOnPossibleDataLoss=False: ran without errorsStopped at the first Msg 5074 and rolled back. Ran after three hand edits
Same tool, run again afterwardsDeployReport: no operations1 table modified (Orders: trigger and description)

The rename (6) counts as found for both tools because each one showed the change, but neither recognised it as a rename. See Renamed columns before running any generated script that drops a column.

Method 1: SqlPackage from the command line

SqlPackage is Microsoft’s command line for DacFx, the library behind the schema compare in SSMS, Visual Studio and VS Code. According to the download page, it “runs on Windows, macOS, and Linux, and is available to install through dotnet tool or as a standalone zip download.” We installed version 170.6.60 as a .NET tool. Our first attempt compared the two live databases directly:

sqlpackage /Action:DeployReport \
  /SourceConnectionString:"Server=localhost,14625;Initial Catalog=shop_dev;User ID=sa;Password=...;TrustServerCertificate=True" \
  /TargetConnectionString:"Server=localhost,14625;Initial Catalog=shop_prod;User ID=sa;Password=...;TrustServerCertificate=True" \
  /OutputPath:report.xml
*** Operation DeployReport does not support source and target being a database.

/Action:Script gave the same message. The parameter tables for both actions list /SourceConnectionString, but with a database on both sides you first extract the source into a .dacpac and compare that against the target:

sqlpackage /Action:Extract /SourceConnectionString:"...;Initial Catalog=shop_dev" /TargetFile:shop_dev.dacpac
sqlpackage /Action:DeployReport /SourceFile:shop_dev.dacpac /TargetConnectionString:"...;Initial Catalog=shop_prod" /OutputPath:report.xml
sqlpackage /Action:Script /SourceFile:shop_dev.dacpac /TargetConnectionString:"...;Initial Catalog=shop_prod" /OutputPath:deploy.sql

DeployReport writes an XML list of the operations a deployment would run, plus alerts. Trimmed:

<Alerts>
  <Alert Name="DataMotion"><Issue Value="[dbo].[Addresses]" /><Issue Value="[dbo].[Orders]" /></Alert>
  <Alert Name="DataIssue">
    <Issue Value="The column [dbo].[Customers].[Fax] is being dropped, data loss could occur." Id="1" />
    <Issue Value="The column [dbo].[Orders].[CreatedAt] is being dropped, data loss could occur." Id="2" />
  </Alert>
</Alerts>
<Operations>
  <Operation Name="Drop"><Item Value="[dbo].[Customers].[IX_Customers_Email]" Type="SqlIndex" /> ...
  <Operation Name="Create"><Item Value="[dbo].[OrderIdList]" Type="SqlTableType" /> ...
  <Operation Name="TableRebuild"><Item Value="[dbo].[Addresses]" Type="SqlTable" /><Item Value="[dbo].[Orders]" Type="SqlTable"> ...
  <Operation Name="Alter"><Item Value="[dbo].[Customers]" Type="SqlTable"> ...

The console also warned: “If this deployment is executed, changes to [dbo].[Orders] might introduce run-time errors in [dbo].[LegacyDailyReport].” That is the procedure that exists only in production (14) and still reads the renamed column. With default options SqlPackage does not drop it, and does not list it as a difference either.

The 473-line deployment script handles the dependent index and constraint on its own. It drops IX_Customers_Email and UQ_Products_Sku at the start and creates them again after the column changes, adds the new foreign key and CHECK constraint WITH NOCHECK and validates existing rows at the end, and rebuilds Addresses through a temporary table to put the columns in the source order. It is a SQLCMD-mode script (:setvar, :on error exit), so run it with sqlcmd or in SQLCMD mode. It starts with these guards:

IF EXISTS (select top 1 1 from [dbo].[Customers])
    RAISERROR (N'Rows were detected. The schema update is terminating because data loss might occur.', 16, 127) WITH NOWAIT
GO
/*
The column [dbo].[Orders].[CreatedAt] is being dropped, data loss could occur.
*/
IF EXISTS (select top 1 1 from [dbo].[Orders])
    RAISERROR (N'Rows were detected. The schema update is terminating because data loss might occur.', 16, 127) WITH NOWAIT

Those come from BlockOnPossibleDataLoss, which is True by default. A /Action:Publish to a copy of shop_prod with default options stopped at the first guard (“Rows were detected. The schema update is terminating because data loss might occur.”) and changed nothing. Things to know:

  • Permissions are not in the .dacpac by default. /Action:Extract has /p:IgnorePermissions=True by default, so the GRANT (19) never reached the comparison. Extracting with /p:IgnorePermissions=False added it.
  • Objects that exist only in the target are kept. /p:DropObjectsNotInSource is False by default, so LegacyDailyReport (14) was neither listed nor dropped. With True the report listed it as a Drop.
  • Column order counts. IgnoreColumnOrder is False by default, so Addresses (22) is rebuilt and its rows copied. Set it to True if column order does not matter to you.
  • The rename loses data. The rebuild of Orders copies Id, CustomerId, Status and UpdatedAt into the new table. PlacedAt is not copied from CreatedAt, so it gets its default value.

With those two options (/p:IgnorePermissions=False on Extract, /p:DropObjectsNotInSource=True on the deployment) plus /p:BlockOnPossibleDataLoss=False, a Publish to a copy of shop_prod finished with “Successfully published database.” A second DeployReport against that copy listed no operations at all. Both orders in the copy now had a PlacedAt equal to the time of the deployment: the original order dates were gone.

On a Mac: SqlPackage needs macOS 14 or later. The .NET tool runs on the .NET runtime already installed, and version 170.6.60 asked for a newer patch release than ours: dotnet tool install succeeded, but running sqlpackage printed “You must install or update .NET to run this application” and named framework 10.0.15, where we had 10.0.10. Update .NET, or use the self-contained zip, which per Microsoft needs no .NET install. (We ran the tool on our installed 10.0.10 runtime with dotnet exec --fx-version 10.0.10; nothing in our results depended on that patch level, but it is not the supported way to run it.)

Method 2: Schema Compare in VS Code

This is the graphical tool Microsoft points Azure Data Studio users to, and the only Microsoft schema compare UI that runs on macOS. Install the MSSQL extension, run MSSQL: Schema Compare from the command palette (or right-click a database in the Object Explorer), pick a source and a target (a database connection, a .dacpac file or a SQL project), and click Compare. Per the Schema Compare page, you can “apply changes directly to the target, or generate a script to apply changes at a later time,” and the Options button sets which objects are compared and which differences are ignored. Schema Compare entered the extension as a preview in version 1.31.0 (April 30, 2025) and became generally available in 1.35.0 (August 20, 2025), according to the extension’s changelog.

We did not run it for this post. Because it uses DacFx, as SqlPackage does, expect the same kinds of results as the SqlPackage column above, but check its option defaults (permissions, objects not in the source, column order, data loss) in the Options dialog rather than assuming they match ours.

Method 3: Jam SQL Studio Schema Compare

In Jam SQL Studio, More → Schema Compare opens a setup dialog: pick the connection and database for the source and the target, pick a depth (Quick, Standard or Deep), click Open Compare, then click Compare in the tab that opens. We ran version 1.5.11 against the same two databases through the app’s own end-to-end test harness, which clicks through the same dialog and buttons.

At Standard depth the Overview counted 2 added, 7 modified, 1 removed and 2 identical objects. The tree listed Customers, OrderItems, Orders and Products as modified, Wishlists as only in the source, the view, GetOrderTotal and the sequence as modified, LegacyDailyReport as only in the target and the table type OrderIdList as added. Addresses and AuditLog were identical. Each table card names what changed, for example Email NOT NULL → NULL, + Phone and − Fax on Customers (source value first).

Jam SQL Studio Schema Compare of shop_dev against shop_prod on SQL Server 2022: the tree lists five changed tables, one view, two procedures, one sequence and one user-defined type; the Overview shows 2 added, 7 modified, 1 removed and 2 identical objects and a card per changed table, such as Customers with one column added, one removed, one changed and one index
The Overview for our two databases at Standard depth.

Selecting an object opens its changes, attribute by attribute, and a side-by-side diff of its DDL. For Products that is the collation of Sku, the length of Name, the default on Stock, the CHECK constraint and the dropped index:

Jam SQL Studio Schema Compare detail for dbo.Products: Sku collation Latin1_General_CS_AS on the source and SQL_Latin1_General_CP1_CI_AS on the target, Name max length 200 and 100, Stock default 1 and 0, CK_Products_Price definition Price greater than 0 and greater than or equal to 0, and the index IX_Products_Name only in the target
The Products detail (source value first).

Select → Select All and Generate Script produced a 120-line script. Its header says it is all-or-nothing: SET XACT_ABORT ON and BEGIN TRANSACTION at the top, IF @@TRANCOUNT = 0 SET NOEXEC ON after every batch, and a COMMIT only if the transaction is still open at the end. The Customers, Orders and Products parts:

-- [REVIEW] dependent index/constraint IX_Customers_Email may block this ALTER (Msg 5074, then Msg 4922)
ALTER TABLE [dbo].[Customers] ALTER COLUMN [Email] NVARCHAR(320) NOT NULL;
IF COL_LENGTH(N'[dbo].[Customers]', N'Phone') IS NULL ALTER TABLE [dbo].[Customers] ADD [Phone] NVARCHAR(30) NULL;
ALTER TABLE [dbo].[Customers] DROP COLUMN [Fax];
DROP INDEX [IX_Customers_Email] ON [dbo].[Customers];
CREATE UNIQUE INDEX [IX_Customers_Email] ON [dbo].[Customers] ([Email]) INCLUDE ([FullName]);
GO
IF @@TRANCOUNT = 0 SET NOEXEC ON;
GO
IF COL_LENGTH(N'[dbo].[Orders]', N'PlacedAt') IS NULL ALTER TABLE [dbo].[Orders] ADD [PlacedAt] DATETIME2(0) NOT NULL DEFAULT (sysutcdatetime());
ALTER TABLE [dbo].[Orders] DROP COLUMN [CreatedAt];
CREATE INDEX [IX_Orders_CustomerId] ON [dbo].[Orders] ([CustomerId]);
GO
IF @@TRANCOUNT = 0 SET NOEXEC ON;
GO
ALTER TABLE [dbo].[Products] DROP CONSTRAINT [CK_Products_Price];
-- [REVIEW] dependent index/constraint UQ_Products_Sku may block this ALTER (Msg 5074, then Msg 4922)
-- [REVIEW] dependent index/constraint UQ_Products_Sku may block this ALTER (Msg 5074, then Msg 4922)
ALTER TABLE [dbo].[Products] ALTER COLUMN [Sku] VARCHAR(20) COLLATE Latin1_General_CS_AS NOT NULL;

We ran it on a copy of shop_prod with sqlcmd -b. SQL Server stopped it at the first ALTER COLUMN:

Msg 5074, Level 16, State 1, Line 2
The index 'IX_Customers_Email' is dependent on column 'Email'.
Msg 4922, Level 16, State 9, Line 2
ALTER TABLE ALTER COLUMN Email failed because one or more objects access this column.

Because of XACT_ABORT, the whole script rolled back: the copy still had Fax, no Wishlists table and the old procedure. The script had flagged this exact statement with a -- [REVIEW] line, but it drops the index three lines after the ALTER COLUMN instead of before it. On a second copy we fixed one error at a time:

  1. Move DROP INDEX [IX_Customers_Email] above the ALTER COLUMN. The next run stopped with Msg 5074: “The object 'DF_Orders_CreatedAt' is dependent on column 'CreatedAt'.” The script drops CreatedAt without first dropping the default constraint bound to it, and no -- [REVIEW] line mentions this one.
  2. Replace the ADD PlacedAt and DROP COLUMN CreatedAt pair with EXEC sp_rename N'dbo.Orders.CreatedAt', N'PlacedAt', N'COLUMN';, which is the right fix for the rename anyway (see below). The next run stopped with Msg 5074 on UQ_Products_Sku, the statement the script had flagged twice.
  3. Drop UQ_Products_Sku before the ALTER COLUMN … COLLATE and add it again after it. The script then ran to the end and committed.

Comparing shop_dev with that copy again left one table: Orders, with the trigger and the description. The Schema Compare docs say triggers and table-level options are compared but not scripted, and that the next comparison keeps listing the table until you apply them by hand; that is what happened.

Jam SQL Studio Schema Compare detail for dbo.Orders: PlacedAt only in the source and CreatedAt only in the target, the index IX_Orders_CustomerId and the trigger TR_Orders_SetUpdatedAt only in the source, and the table option comment One row per checkout on the source and empty on the target
The Orders detail: the renamed column as one column added and one removed, the new index and trigger, and the MS_Description shown as a table comment.

What it did not do, in this test:

  • Permissions are not compared. The docs point to Security Manager for roles and permissions, so the GRANT (19) did not appear.
  • Column order is not reported, so Addresses (22) compared as identical.
  • The trigger and the MS_Description were reported but not scripted, and the script says nothing about leaving them out.
  • Two ALTER COLUMN statements run before the index or unique constraint that blocks them is dropped, and a dropped column keeps its default constraint. Both stop the script with Msg 5074; nothing is half-applied, because the script rolls back.
  • A new table’s default constraint loses its name. Wishlists was created with DEFAULT (sysutcdatetime()) and no CONSTRAINT DF_Wishlists_AddedAt, so SQL Server named it. Jam SQL Studio compares the default’s value, not its name, and did not report this afterwards; SqlPackage did (below).

Depth: Quick compares columns only. It still listed the column changes, the view, both procedures, the sequence and the table type, but not OrderItems, whose only change is a foreign key, and a banner says which classes were not compared. Standard and Deep gave identical results here, because the only properties Standard ignores on SQL Server are fill factor and data compression, which our tables do not set.

Personal mode, which is free for personal, non-commercial use, compares schemas of up to 200 objects per side; work use needs Pro, which removes the limit (pricing). The Schema Compare docs cover the setup options, per-column selection, script direction, user-defined types and SQL Server collation changes.

Renamed columns: both tools show a drop and an add

SQL Server’s catalog does not record that CreatedAt became PlacedAt, so neither tool could tell a rename from a dropped column and a new one. SqlPackage rebuilt Orders without copying the old values, and Jam SQL Studio’s script would have done the same with ADD and DROP COLUMN had the default constraint not stopped it. Either way, every order would have lost its date and taken the time of the deployment instead.

Rename the column on the target before you generate the script, then compare again:

EXEC sp_rename N'dbo.Orders.CreatedAt', N'PlacedAt', N'COLUMN';

SQL Server answers with “Caution: Changing any part of an object name could break scripts and stored procedures.” and keeps the data, the column’s position and its default constraint. The next comparison no longer sees a dropped column: a DeployReport against a copy whose column had already been renamed this way (the copy in Check a sync) listed no rebuild of Orders and no dropped column, and Jam SQL Studio’s comparison of that copy listed only the trigger and the description on Orders. Run the new script on a copy first and check that the old dates are still there.

Editing a script you already have works for Jam SQL Studio’s: sp_rename in place of its ADD and DROP COLUMN pair was our second hand edit above. It does not work for SqlPackage’s. That script rebuilds Orders through a new table and copies four columns into it, not the date, so a rename placed in front of the rebuild still loses the dates; and it drops the table’s foreign keys and default constraints before the rebuild and creates them again after it, so cutting the rebuild out by hand is easy to get wrong. Procedures that use the old name, like LegacyDailyReport here, still have to be changed by hand. Microsoft’s schema comparison overview describes objects that were “refactored and either renamed or moved to a new schema” appearing under both names; that needs the rename to have been made as a refactoring in a SQL project, and a .dacpac extracted from a live database carries no such record, which matches what we saw.

Check a sync with a second tool

A tool that reports no differences after its own script has only checked what it compares. We ran SqlPackage’s DeployReport (with permissions in the .dacpac and DropObjectsNotInSource) against the copy that Jam SQL Studio’s hand-edited script had synchronized. It listed the trigger, the MS_Description, the GRANT, a rebuild of Addresses for column order, and one difference Jam SQL Studio had not reported at all: the default constraint on Wishlists.AddedAt, which the script had created without its name.

<Operation Name="Drop"><Item Value="unnamed constraint on [dbo].[Wishlists]" Type="SqlDefaultConstraint" /> ...
<Operation Name="TableRebuild"><Item Value="[dbo].[Addresses]" Type="SqlTable" />
<Operation Name="Create"><Item Value="[dbo].[DF_Wishlists_AddedAt]" Type="SqlDefaultConstraint" />
  <Item Value="[dbo].[TR_Orders_SetUpdatedAt]" Type="SqlDmlTrigger" />
  <Item Value="Permission" Type="SqlPermissionStatement" />
  <Item Value="[dbo].[Orders].[MS_Description]" Type="SqlExtendedProperty" /> ...

An empty DeployReport (<Alerts /> and no operations), with the options you care about, is a good definition of “the two schemas match”, whichever tool did the comparison.

Doing this on a Mac

The databases you compare usually live on servers; on a Mac you often also want a local copy to compare against. SQL Server has no macOS build, so a local instance runs as a Linux container: How to Run SQL Server on a Mac covers the setup on Apple Silicon, Restore a SQL Server .bak in Docker on an Apple Silicon Mac gets a copy of production into it, and Can’t connect to SQL Server from a Mac covers the connection errors. SSMS itself, including its new Schema Compare, needs a Windows virtual machine; SSMS for Mac compares that with the alternatives.

Which one to use

  • CI, a deployment pipeline or a one-off check from the terminal: SqlPackage. It runs on macOS, found all 22 differences once permissions were extracted and DropObjectsNotInSource was on, dropped and re-created the dependent index and constraint itself, and its data-loss guard stops a deployment before it drops data. Read its warnings: the rename still cost the order dates, so rename columns on the target before you generate the script.
  • A free graphical compare for SQL Server only: VS Code with the MSSQL extension. It is Microsoft’s supported replacement for Azure Data Studio’s Schema Compare and works on the same DacFx engine. We did not test it here.
  • A Windows machine or VM is already part of your setup: SSMS 22.10.2 or later, or Visual Studio. Both have Schema Compare, and SSMS also has the rest of the SQL Server tooling.
  • A native Mac client with a selectable diff, for SQL Server and other engines: a GUI compare such as Jam SQL Studio. It showed 20 of the 22 differences with each attribute that changed, and compares PostgreSQL, MySQL, Oracle and SQLite the same way. On SQL Server, read every -- [REVIEW] line before you run its script, move DROP INDEX and DROP CONSTRAINT statements above the ALTER COLUMN they block, and apply triggers, extended properties and permissions by hand.

The same test on PostgreSQL, with pg_dump, pgAdmin and Jam SQL Studio, is in Compare Two PostgreSQL Schemas. Everything else Jam SQL Studio does for SQL Server is on the SQL Server page.

Quick Answers

Q: How do I compare two SQL Server databases on a Mac?

A: SSMS, Visual Studio with SSDT and Redgate SQL Compare are Windows applications, so on a Mac the options are Schema Compare in the MSSQL extension for Visual Studio Code, the SqlPackage command line (extract a .dacpac from one database, then run DeployReport or Script against the other), or a native client with a schema compare, such as Jam SQL Studio. In our test with 22 known differences, SqlPackage 170.6.60 found 20 with its default options and all 22 with two options changed, and Jam SQL Studio 1.5.11 found 20 and scripted 18.

Q: Does SSMS have a schema compare?

A: Yes. SSMS 22.7 (June 9, 2026) added Schema Compare as a preview, and SSMS 22.10.2 (September 28, 2026) made it generally available. It compares databases, .dacpac files and SQL projects and can update the target or generate a script. SSMS runs only on Windows, so on a Mac it needs a Windows virtual machine.

Q: Can SqlPackage compare two live databases?

A: Not directly in our test. With a database as both source and target, SqlPackage 170.6.60 stopped with “Operation DeployReport does not support source and target being a database.” and the same for Script. Run sqlpackage /Action:Extract on the source database to get a .dacpac, then pass it as /SourceFile to DeployReport (an XML list of the changes) or Script (a deployment script) with the live target.

Q: Why does SqlPackage stop with “Rows were detected. The schema update is terminating because data loss might occur.”?

A: BlockOnPossibleDataLoss is on by default. When a change can lose data, such as a dropped column or a rebuilt table, the deployment script first checks whether the table has rows and stops before changing anything if it does. Check which columns would be dropped, then deploy again with /p:BlockOnPossibleDataLoss=False if the loss is intended.

Q: What replaced Azure Data Studio's Schema Compare?

A: Azure Data Studio was retired on February 28, 2026. Microsoft points to Schema Compare in the MSSQL extension for Visual Studio Code, generally available since version 1.35.0 (August 20, 2025), which runs on macOS, Windows and Linux. It compares databases, .dacpac files and SQL projects and can apply the changes or generate a script.

Q: Do schema compare tools detect a renamed SQL Server column?

A: Not in our test. SqlPackage and Jam SQL Studio both showed the renamed column as one column dropped and another added. SqlPackage rebuilt the table without copying the old column's values, and Jam SQL Studio's script failed on the drop because a default constraint was still bound to the column. Rename the column on the target with EXEC sp_rename first, then compare and generate the script again. Adding sp_rename to SqlPackage's script does not help, because its table rebuild still copies only the other columns.

Q: What did Jam SQL Studio's Schema Compare miss on SQL Server?

A: Version 1.5.11 did not compare permissions or column order, and it reported a new trigger and an MS_Description extended property but left both out of the script. Its script also changed two columns before dropping the index or unique constraint that depends on them, and dropped a column without first dropping its default constraint, so SQL Server stopped it with Msg 5074 and the transaction rolled back. It ran after three hand edits.

How we tested

Everything ran on November 26, 2026 on an x86-64 Linux machine, not on a Mac; SqlPackage and Jam SQL Studio are both available for macOS. The server was SQL Server 2022 CU26 (16.0.4265.3), Developer edition, in a Docker container (mcr.microsoft.com/mssql/server:2022-latest) created for this test and removed afterwards. shop_prod was built from one script and copied into one database per tool, so that each tool’s script ran against its own untouched copy. SqlPackage 170.6.60 (build 170.6.60.2) was installed with dotnet tool install and run on .NET 10.0.10, as described above. Jam SQL Studio 1.5.11 ran in the app’s end-to-end test harness, which drives the real setup dialog, Compare, Select All and Generate Script; the screenshots come from that run. Each script was run with sqlcmd -b from the container’s mssql-tools18. We did not run SSMS, Visual Studio, VS Code, Redgate SQL Compare, Flyway, dbForge or DataGrip.

Last verified against the vendors’ documentation, and by running every command and comparison above, on 2026-11-26.

Related