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/tools/sql-database-projects/concepts/package-references.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ The following example includes a package reference to the `Contoso.AdventureWork
41
41
42
42
### System databases
43
43
44
-
The SQL system databases (`master`, `msdb`) are been published on NuGet.org as database reference packages. These packages contain the schema for the system databases and can be used as package references in SQL projects. The system database packages are versioned to align with the version of SQL Server they're associated with. For example, the `master` system database package for SQL Server 2022 is `Microsoft.SqlServer.Dacpacs.Master` version `160.2.1` and can be added to a SQL project as a package reference:
44
+
The SQL system databases (`master`, `msdb`) are published on NuGet.org as database reference packages. These packages contain the schema for the system databases and can be used as package references in SQL projects. The system database packages are versioned to align with the version of SQL Server they're associated with. For example, the `master` system database package for SQL Server 2022 is `Microsoft.SqlServer.Dacpacs.Master` version `160.2.1` and can be added to a SQL project as a package reference:
Copy file name to clipboardExpand all lines: docs/tools/sql-database-projects/concepts/schema-comparison.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ The differences between source and target appear in a grid for easy review. Comp
41
41
- SQL database project
42
42
-`.dacpac` file
43
43
44
-
In schema compare you can drill into and review each difference in the results grid or in script form where line by line details of the changes are available. You can also selectively exclude specific differences before updating the target. The schema compare tooling is available in Visual Studio, Azure Data Studio, and the command line.
44
+
In schema compare you can drill into and review each difference in the results grid or in script form where details of the changes are available at a per-line level. You can also selectively exclude specific differences before updating the target. The schema compare tooling is available in Visual Studio, Azure Data Studio, and the command line.
45
45
46
46
### Schema comparison options
47
47
@@ -57,7 +57,7 @@ The object types that are included in the comparison can also be configured. The
57
57
58
58
### Schema compare files
59
59
60
-
The comparison definition for schema compare can be saved as an `.scmp` file. This file stores information about the schema comparison in XML and includes:
60
+
The comparison definition for schema compare can be saved as an `.scmp` file, known as a *schema compare file*. This file stores information about the schema comparison in XML and includes:
61
61
62
62
- source and target connection information
63
63
- comparison options
@@ -99,7 +99,7 @@ An `.scmp` file can be opened in Visual Studio or Azure Data Studio to easily ru
99
99
100
100
To change the grouping preference, select the **Group Results** dropdown list in the toolbar. Select **Type** to group the results by object type (for example, by tables, views, or stored procedures).
101
101
102
-
7. By default all differences are included in the scope of the Update Target action. You can exclude differences that you don't want to synchronize. To do so, uncheck the **Action** column in the center of each row. Alternatively, right-click a row in the Schema pane, and select **Exclude**. The row is immediately grayed out. When it's time to update the target database, this row isn't considered for any pending changes.
102
+
7. By default all differences are included in the scope of the Update Target action. You can exclude differences that you don't want to synchronize. To do so, uncheck the **Action** column in the center of each row. Alternatively, right-click a row in the Schema pane, and select **Exclude**. The row is immediately grayed out. When schema compare is used to update the target database, this row isn't considered for any pending changes.
103
103
104
104
You can also right-click on a group row and select **Exclude All** or **Include All**, which is equivalent to unchecking or checking all differences in that group. When you group results by schema this is a useful way to include or exclude all changes to a specific schema.
105
105
@@ -144,7 +144,7 @@ To update the schema of the target, you have two options. You can update the tar
144
144
145
145
:::image type="content" source="media/schema-comparison/ads-schema-compare.png" alt-text="Screenshot of Schema comparison interface in Azure Data Studio comparing a database against a project." lightbox="media/schema-comparison/ads-schema-compare.png":::
146
146
147
-
5. By default all differences are included in the scope of the Update Target action. You can exclude differences that you don't want to synchronize. To do so, uncheck the **Action** column in the center of each row. Alternatively, right-click a row in the Schema pane, and select **Exclude**. The row is immediately grayed out. When it's time to update the target database, this row isn't considered for any pending changes.
147
+
5. By default all differences are included in the scope of the Update Target action. You can exclude differences that you don't want to synchronize. To do so, uncheck the **Action** column in the center of each row. Alternatively, right-click a row in the Schema pane, and select **Exclude**. The row is immediately grayed out. When schema compare is used to update the target database, this row isn't considered for any pending changes.
148
148
149
149
You can also right-click on a group row and select **Exclude All** or **Include All**, which is equivalent to unchecking or checking all differences in that group. When you group results by schema this is a useful way to include or exclude all changes to a specific schema.
150
150
@@ -164,6 +164,6 @@ To update the schema of the target, you have two options. You can update the tar
164
164
165
165
## Related content
166
166
167
-
-[Compare a database and a project](../howto/compare-a-database-and-a-project.md)
168
-
-[Tutorial: start from an existing database](../tutorials/start-from-an-existing-database.md)
167
+
-[Compare a database and a project](../howto/compare-database-project.md)
168
+
-[Tutorial: start from an existing database](../tutorials/start-from-existing-database.md)
[!INCLUDE [SQL Server Azure SQL Database Azure SQL Managed Instance](../../../../includes/applies-to-version/sql-asdb-asdbmi.md)]
16
16
17
-
You can eliminate potential design and naming problems and avoid performance pitfalls by analyzing your database code. The concepts are very similar to performing static analysis to detect and correct defects in managed code. You configure which analysis rules you want to apply to your database code, analyze the code, and then correct or ignore the issues that you identify. Before you can analyze your database code, you must first import your database schema into a database project. For more information, see [Start from an existing database](../../tutorials/start-from-an-existing-database.md).
17
+
You can eliminate potential design and naming problems and avoid performance pitfalls by analyzing your database code. The concepts are very similar to performing static analysis to detect and correct defects in managed code. You configure which analysis rules you want to apply to your database code, analyze the code, and then correct or ignore the issues that you identify. Before you can analyze your database code, you must first import your database schema into a database project. For more information, see [Start from an existing database](../../tutorials/start-from-existing-database.md).
18
18
19
19
By performing static analysis with the [provided rules](#provided-rules), you can identify problems that fall into the following categories:
20
20
@@ -48,7 +48,7 @@ A SQL project file can contain two properties, `RunSqlCodeAnalysis` and `SqlCode
48
48
...
49
49
```
50
50
51
-
The `SqlCodeAnalysisRules` element specifies the rules and their error/warning behavior. In the following example the rules Microsoft.Rules.Data.SR0006 and Microsoft.Rules.Data.SR0007 are disabled and the a detection for the rule Microsoft.Rules.Data.SR0008 will result in a build error.
51
+
The `SqlCodeAnalysisRules` element specifies the rules and their error/warning behavior. In the following example the rules Microsoft.Rules.Data.SR0006 and Microsoft.Rules.Data.SR0007 are disabled and a detection for the rule Microsoft.Rules.Data.SR0008 will result in a build error.
Copy file name to clipboardExpand all lines: docs/tools/sql-database-projects/get-started.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ dotnet new install Microsoft.Build.Sql.Templates
65
65
66
66
## Create a new project
67
67
68
-
We start our project by creating a new SQL database project before manually adding objects to it. There are other ways to create a project that enable immediately populating the project with objects from an existing database, such as using the [schema comparison tools](howto/compare-a-database-and-a-project.md).
68
+
We start our project by creating a new SQL database project before manually adding objects to it. There are other ways to create a project that enable immediately populating the project with objects from an existing database, such as using the [schema comparison tools](howto/compare-database-project.md).
Copy file name to clipboardExpand all lines: docs/tools/sql-database-projects/howto/analyze-t-sql-code-to-find-defects.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ For this initial assessment, you want to find all the potential problems in the
20
20
21
21
## Prerequisites
22
22
23
-
Before you can analyze the code in a database project, you must already have a SQL project. For more information on using an existing database to create a project, see [Tutorial: start from an existing database](../tutorials/start-from-an-existing-database.md).
23
+
Before you can analyze the code in a database project, you must already have a SQL project. For more information on using an existing database to create a project, see [Tutorial: start from an existing database](../tutorials/start-from-existing-database.md).
0 commit comments