You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/azure-data-studio/extensions/schema-compare-extension.md
+27-18Lines changed: 27 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,50 +13,59 @@ ms.date: 5/24/2022
13
13
14
14
# Schema Compare extension
15
15
16
-
The Schema Compare extension provides an easy-to-use experience to compare two database definitions and apply the differences from the source to the target. This includes active database connections, dacpac files, and [SQL projects](sql-database-project-extension.md).
16
+
This article provides an overview of the Schema Compare extension for Azure Data Studio. 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 includes active database connections, dacpac files, and [SQL projects](sql-database-project-extension.md).
17
17
18
-
It can be tedious to manually manage and synchronize different database versions. 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 the changes. The Schema Compare extension is a reliable tool that saves you time and code.
18
+
It can be tedious to manually manage and synchronize different database versions. 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. The Schema Compare extension is a reliable tool that saves you time and code.
:::image type="content" source="media/schema-compare-extension/schema-compare-options.png" alt-text="Screenshot of the Azure Data Studio GUI, compare schema extension":::
21
22
22
23
## Features
23
24
24
-
* Compare schemas between two dacpac files, databases, or SQL projects
25
-
* View results as a set of actions that must be taken against the target for it to match the source
26
-
* Selectively exclude actions listed in results
27
-
* Set options that control the scope of the comparison
28
-
* Apply changes to target or generate a script with the same effect
29
-
* Save the comparison
25
+
The Schema Compare extension provides the following features:
26
+
27
+
* Compare schemas between two dacpac files, databases, or SQL projects.
28
+
* View results as a set of actions to take against the target for it to match the source.
29
+
* Selectively exclude actions listed in results.
30
+
* Set options that control the scope of the comparison.
31
+
* Apply changes directly to the target or generate a script to apply changes at a later time.
32
+
* Save the comparison.
30
33
31
-

34
+
:::image type="content" source="media/schema-compare-extension/schema-compare.png" alt-text="Screenshot of the Azure Data Studio GUI, comparing schemas":::
32
35
33
36
34
37
## Install the extension
35
38
36
-
1. Select the Extensions Icon to view the available extensions.
39
+
To install the Schema Compare extension, follow these steps:
40
+
41
+
1. In Azure Data Studio, Select the Extensions Icon to view available extensions.
:::image type="content" source="media/schema-compare-extension/schema-compare-marketplace-search.png" alt-text="Screenshot of the Azure Data Studio GUI, marketplace search":::
39
44
40
45
2. Search for the **Schema Compare** extension and select it to view its details. Select **Install** to add the extension.
41
46
42
47
3. Once installed, **Reload** to enable the extension in Azure Data Studio (only required when installing an extension for the first time).
43
48
44
-
## Launch a schema comparison
49
+
## Compare schemas
45
50
46
-
1.To open the Schema Compare dialog, **right-click** a database in the Object Explorer and Select **Schema Compare**. The database you select is set as the Source database in the comparison.
51
+
To compare schemas, open the Schema Compare dialog box. To do so, follow these steps:
1. To open the Schema Compare dialog box, right-click a database in Object Explorer and select **Schema Compare**. The database you select is set as the **Source** database in the comparison.
49
54
50
-
2. Select one of the ellipses (...) to change the Source and Target of your Schema Compare and Select OK.
55
+
:::image type="content" source="media/schema-compare-extension/schema-compare-launch.png" alt-text="Screenshot of the Azure Data Studio GUI, schema compare launch":::
2. Select one of the ellipses (...) to change the **Source** and **Target** of your Schema Compare and select OK.
53
58
54
-
3. To customize your comparison, Select the **Options** button in the toolbar.
59
+
:::image type="content" source="media/schema-compare-extension/schema-compare-select-source-target.png" alt-text="Screenshot of the Azure Data Studio GUI, schema compare, select source and target":::
60
+
61
+
3. To customize your comparison, select the **Options** button in the toolbar.
55
62
56
63
4. Select **Compare** to view the results of the comparison.
57
64
58
65
## Update an existing SQL project from a database
59
66
67
+
To update an existing SQL project from a database, follow these steps:
68
+
60
69
1. Install both the **Schema Compare** and **[SQL Database Project](sql-database-project-extension.md)** extensions.
61
70
62
71
2. From a **Database dashboard** select the **Update Project from Database** option in the toolbar.
Copy file name to clipboardExpand all lines: docs/azure-data-studio/extensions/sql-database-project-extension-build-from-command-line.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,10 @@ ms.date: 5/24/2022
13
13
14
14
# Build a database project from command line
15
15
16
-
While the SQL Database Project extension (preview) provides a graphical user interface to [build a database project](sql-database-project-extension-build.md), a command line build experience is also available for Windows, macOS, and Linux environments. The steps to build a project from the command line are different between [SDK-style SQL projects](sql-database-project-extension-sdk-style-projects.md) and the previous SQL project format. This article outlines the prerequisites and syntax needed to build a SQL project to dacpac from the command line for both SQL project types.
16
+
While the SQL Database Project extension (preview) provides a graphical user interface to [build a database project](sql-database-project-extension-build.md), a command line build experience is also available for Windows, macOS, and Linux environments. The steps to build a project from the command line are different between [SDK-style SQL projects](sql-database-project-extension-sdk-style-projects.md) and the previous non-SDK-style SQL project format. This article outlines the prerequisites and syntax needed to build a SQL project to dacpac from the command line for both SQL project types.
17
17
18
18
## SDK-style SQL projects
19
+
19
20
Using [Microsoft.Build.Sql](https://www.nuget.org/packages/Microsoft.Build.Sql) with [SDK-style SQL projects](sql-database-project-extension-sdk-style-projects.md) is the preferred method for working with SQL projects from the command line.
20
21
21
22
To build an SDK-style SQL project from the command line on Windows, macOS, or Linux, use the following command:
@@ -24,6 +25,9 @@ To build an SDK-style SQL project from the command line on Windows, macOS, or Li
24
25
dotnet build /p:NetCoreBuild=true
25
26
```
26
27
28
+
> [!NOTE]
29
+
> Using SDK-style SQL projects is currently in preview.
Copy file name to clipboardExpand all lines: docs/azure-data-studio/extensions/sql-database-project-extension-sdk-style-projects.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Using SDK-style projects with the SQL Database Projects extension
2
+
title: Use SDK-style projects with the SQL Database Projects extension
3
3
description: Getting started using SDK-style SQL projects with the SQL Database Projects extension for Azure Data Studio or VS Code
4
4
ms.prod: azure-data-studio
5
5
ms.technology: azure-data-studio
@@ -12,21 +12,26 @@ ms.custom:
12
12
ms.date: 5/24/2022
13
13
---
14
14
15
-
# Using SDK-style SQL projects with the SQL Database Projects extension (Preview)
15
+
# Use SDK-style SQL projects with the SQL Database Projects extension (Preview)
16
16
17
-
This article introduces [Microsoft.Build.Sql](https://www.nuget.org/packages/Microsoft.Build.Sql) for SDK-style SQL projects in the SQL Database Projects extension in Azure Data Studio or VS Code. SDK-style SQL projects are especially advantageous for applications shipped through pipelines or built in cross-platform environments. The initial announcement is available in [TechCommunity](https://techcommunity.microsoft.com/t5/azure-sql-blog/microsoft-build-sql-the-next-frontier-of-sql-projects/ba-p/3290628).
17
+
This article introduces [Microsoft.Build.Sql](https://www.nuget.org/packages/Microsoft.Build.Sql) for SDK-style SQL projects in the SQL Database Projects extension in Azure Data Studio or VS Code. SDK-style SQL projects are especially advantageous for applications shipped through pipelines or built in cross-platform environments. The initial announcement is available in [TechCommunity](https://techcommunity.microsoft.com/t5/azure-sql-blog/microsoft-build-sql-the-next-frontier-of-sql-projects/ba-p/3290628).
18
+
19
+
> [!NOTE]
20
+
> Using SDK-style SQL projects is currently in preview.
18
21
19
22
## Create an SDK-style database project
20
23
24
+
You can create an SDK-style database project from a blank project, or from an existing database.
25
+
21
26
### Blank project
22
27
23
-
In the **Projects** view, select the **New Project** button and enter a project name in the text input that appears. In the "Select a Folder" dialog that appears, select a directory for the project's folder, `.sqlproj` file, and other contents to reside in.
28
+
In the **Projects** view, select the **New Project** button and enter a project name in the text input that appears. In the **Select a Folder** dialog box that appears, choose a directory for the project's folder, `.sqlproj` file, and other contents to reside in.
24
29
25
30
By default the selection for **SDK-style project (Preview)** is checked. When the dialog is completed, the empty project is opened and visible in the **Projects** view for editing.
26
31
27
32
### From an existing database
28
33
29
-
In the **Project** view, select the **Import Project from Database** button and connect to a SQL Server. Once the connection is established, select a database from the list available databases and set the name of the project. Select a target structure of the extraction.
34
+
In the **Project** view, select the **Import Project from Database** button and connect to a SQL Server. Once the connection is established, select a database from the list of available databases and set the name of the project. Select a target structure of the extraction.
30
35
31
36
By default the selection for **SDK-style project (Preview)** is checked. When the dialog is completed, the new project is opened and contains SQL scripts for the contents of the selected database.
0 commit comments