Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit f332a3b

Browse files
committed
edit of sdk-style project content
1 parent 35e2e5f commit f332a3b

5 files changed

Lines changed: 106 additions & 68 deletions

File tree

docs/azure-data-studio/extensions/schema-compare-extension.md

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,50 +13,59 @@ ms.date: 5/24/2022
1313

1414
# Schema Compare extension
1515

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).
1717

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.
1919

20-
![Schema Compare: Options Dialog](media/schema-compare-extension/schema-compare-options.png)
20+
21+
:::image type="content" source="media/schema-compare-extension/schema-compare-options.png" alt-text="Screenshot of the Azure Data Studio GUI, compare schema extension":::
2122

2223
## Features
2324

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.
3033

31-
![Schema Compare: Example Comparison](media/schema-compare-extension/schema-compare.png)
34+
:::image type="content" source="media/schema-compare-extension/schema-compare.png" alt-text="Screenshot of the Azure Data Studio GUI, comparing schemas":::
3235

3336

3437
## Install the extension
3538

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.
3742

38-
:::image type="content" source="media/schema-compare-extension/schema-compare-marketplace-search.png" alt-text="marketplace search":::
43+
:::image type="content" source="media/schema-compare-extension/schema-compare-marketplace-search.png" alt-text="Screenshot of the Azure Data Studio GUI, marketplace search":::
3944

4045
2. Search for the **Schema Compare** extension and select it to view its details. Select **Install** to add the extension.
4146

4247
3. Once installed, **Reload** to enable the extension in Azure Data Studio (only required when installing an extension for the first time).
4348

44-
## Launch a schema comparison
49+
## Compare schemas
4550

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:
4752

48-
:::image type="content" source="media/schema-compare-extension/schema-compare-launch.png" alt-text="schema compare launch":::
53+
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.
4954

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":::
5156

52-
:::image type="content" source="media/schema-compare-extension/schema-compare-select-source-target.png" alt-text="schema compare select source target":::
57+
2. Select one of the ellipses (...) to change the **Source** and **Target** of your Schema Compare and select OK.
5358

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.
5562

5663
4. Select **Compare** to view the results of the comparison.
5764

5865
## Update an existing SQL project from a database
5966

67+
To update an existing SQL project from a database, follow these steps:
68+
6069
1. Install both the **Schema Compare** and **[SQL Database Project](sql-database-project-extension.md)** extensions.
6170

6271
2. From a **Database dashboard** select the **Update Project from Database** option in the toolbar.

docs/azure-data-studio/extensions/sql-database-project-extension-build-from-command-line.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ ms.date: 5/24/2022
1313

1414
# Build a database project from command line
1515

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.
1717

1818
## SDK-style SQL projects
19+
1920
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.
2021

2122
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
2425
dotnet build /p:NetCoreBuild=true
2526
```
2627

28+
> [!NOTE]
29+
> Using SDK-style SQL projects is currently in preview.
30+
2731

2832
## Non-SDK-style SQL projects
2933

docs/azure-data-studio/extensions/sql-database-project-extension-sdk-style-projects.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Using SDK-style projects with the SQL Database Projects extension
2+
title: Use SDK-style projects with the SQL Database Projects extension
33
description: Getting started using SDK-style SQL projects with the SQL Database Projects extension for Azure Data Studio or VS Code
44
ms.prod: azure-data-studio
55
ms.technology: azure-data-studio
@@ -12,21 +12,26 @@ ms.custom:
1212
ms.date: 5/24/2022
1313
---
1414

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)
1616

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.
1821
1922
## Create an SDK-style database project
2023

24+
You can create an SDK-style database project from a blank project, or from an existing database.
25+
2126
### Blank project
2227

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.
2429

2530
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.
2631

2732
### From an existing database
2833

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.
3035

3136
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.
3237

0 commit comments

Comments
 (0)