

Install both the Schema Compare and SQL Database Project extensions.įrom a Database dashboard select the Update Project from Database option in the toolbar. To update an existing SQL project from a database, follow these steps: Update an existing SQL project from a database Select Compare to view the results of the comparison. To customize your comparison, select the Options button in the toolbar.

:::image type="content" source="media/schema-compare-extension/schema-compare-select-source-target.png" alt-text="Screenshot of the Azure Data Studio G U I, schema compare, select source and target." lightbox="media/schema-compare-extension/schema-compare-select-source-target.png"::: Select one of the ellipses (.) to change the Source and Target of your Schema Compare and select OK. :::image type="content" source="media/schema-compare-extension/schema-compare-launch.png" alt-text="Screenshot of the Azure Data Studio G U I, schema compare launch."::: The database you select is set as the Source database in the comparison. To open the Schema Compare dialog box, right-click a database in Object Explorer and select Schema Compare. To compare schemas, open the Schema Compare dialog box. Once installed, Reload to enable the extension in Azure Data Studio (only required when installing an extension for the first time). Search for the Schema Compare extension and select it to view its details. :::image type="content" source="media/schema-compare-extension/schema-compare-marketplace-search.png" alt-text="Screenshot of the Azure Data Studio GUI, marketplace search."::: In Azure Data Studio, Select the Extensions Icon to view available extensions. To install the Schema Compare extension, follow these steps: :::image type="content" source="media/schema-compare-extension/schema-compare.png" alt-text="Screenshot of the Azure Data Studio G U I, comparing schemas." lightbox="media/schema-compare-extension/schema-compare.png"::: Install the extension Apply changes directly to the target or generate a script to apply changes at a later time.Set options that control the scope of the comparison.Selectively exclude actions listed in results.View results as a set of actions to take against the target for it to match the source.Compare schemas between two dacpac files, databases, or SQL projects.The Schema Compare extension provides the following features: :::image type="content" source="media/schema-compare-extension/schema-compare-options.png" alt-text="Screenshot of the Azure Data Studio G U I, compare schema extension." lightbox="media/schema-compare-extension/schema-compare-options.png"::: Features The Schema Compare extension is a reliable tool that saves you time and code.

Azure data studio data compare full#
The Schema Compare extension simplifies the process of comparing databases and gives you full control when synchronizing them - you can selectively filter specific differences and categories of differences before applying any changes. It can be tedious to manually manage and synchronize different database versions. This includes active database connections, dacpac files, and SQL projects. The Schema Compare extension provides an easy-to-use way to compare two database definitions and apply the differences from the source to the target. This article provides an overview of the Schema Compare extension for Azure Data Studio.
