<ul data-eligibleForWebStory="true">A new feature in preview for SQL Server 2025 is the 'schema compare' in the Visual Code extension.The feature allows comparing schemas between two databases to ensure alignment.The user creates two identical databases 'db1' and 'db2' with tables and data.After running a schema compare, no differences were found between the databases.Changes are made to 'db1', including adding a column, dropping a column, changing a column's data type, creating a new schema, and table.Running the schema compare again shows the schema changes made.The comparison results indicate that a table will be deleted and recreated instead of a straightforward schema transfer.The process is repeated with 'db2' as the source and 'db1' as the target to revert the changes effectively.Using the 'Switch Direction' option in schema compare helps in managing changes from both databases effectively.The script generation feature provides a script reflecting the changes made during the comparison.Caution is advised when applying changes to production databases based on the generated script.