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/ssdt/extract-publish-and-register-dacpac-files.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
@@ -57,5 +57,5 @@ In the **Register Data-tier Application** dialog box, specify the properties of
57
57
Unregistering allows you to remove the metadata for a registered data-tier application from the instance. Unregistering does not delete the registered database.
Copy file name to clipboardExpand all lines: docs/ssdt/how-to-browse-objects-in-a-sql-server-database-project.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
@@ -22,5 +22,5 @@ The SQL Server Object Explorer in Visual Studio now contains a dedicated Project
22
22
3. In **SQL Server Object Explorer**, expand the **Projects** node to see all the current SQL Server database projects in your solution under the **Projects** node.
Copy file name to clipboardExpand all lines: docs/ssdt/how-to-change-target-platform-and-publish-a-database-project.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,6 @@ You can change the target SQL Server version for your SQL Server Data Tools (SSD
18
18
19
19
SSDT also makes this task simple by being aware of your target platform and automatically detecting any error in your code (for example., when you are using unsupported features for a project that is going to be published to SQL Azure).
20
20
21
-
> [!WARNING]
22
-
> The following procedures utilize entities created in previous procedures in the [Connected Database Development](../ssdt/connected-database-development.md) and [Project-Oriented Offline Database Development](../ssdt/project-oriented-offline-database-development.md) sections.
23
-
24
21
### To change a project's target platform
25
22
26
23
1. Right-click your project in **Solution Explorer** and select **Properties**. Click the **Project Settings** tab on the left to access the **Project Settings** property page.
Copy file name to clipboardExpand all lines: docs/ssdt/how-to-clone-an-existing-database.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,6 @@ This task uses some of the steps you learned in previous procedures to create a
15
15
16
16
By using these steps, you can easily create a development or test database from a production database with identical schema and data. You can then continue to develop the test database in a connected mode, or create a database project for offline development and testing, all without disrupting the operation of the production database.
17
17
18
-
> [!WARNING]
19
-
> The following procedures uses entities created in previous procedures in the [Connected Database Development](../ssdt/connected-database-development.md) section.
20
-
21
18
### To create a development database
22
19
23
20
1. In **SQL Server Object Explorer**, under the **SQL Server** node, expand your connected server instance.
Copy file name to clipboardExpand all lines: docs/ssdt/how-to-create-a-new-database-project.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,6 @@ You can create a new database project and import database schema from an existin
20
20
21
21
The following two procedures essentially achieve the same goal by creating a new database project and importing schema from an existing database. Each database object will be represented as a SQL script file (.sql) in **Solution Explorer**. For more information on importing database schema from a snapshot, see [How to: Create a Snapshot of a Project](../ssdt/how-to-create-a-snapshot-of-a-project.md).
22
22
23
-
> [!WARNING]
24
-
> The following procedures utilize entities created in previous procedures in the [Connected Database Development](../ssdt/connected-database-development.md) section.
25
-
26
23
### To create a new database project off a connected database
27
24
28
25
1. Right-click the **TradeDev** node in **SQL Server Object Explorer** and select **Create New Project**.
@@ -35,7 +32,7 @@ The following two procedures essentially achieve the same goal by creating a new
35
32
36
33
5. Examine the hierarchy in the **Solution Explorer**. Expand the **dbo** folder and you will find separate **Functions**, **Tables** and **Views** folders. Notice that the tables and function are grouped under their schema folders.
37
34
38
-
6. Double-click **Products.sql** under **Tables**. The **Table Designer** opens, showing the visual interpretation of the table in the Columns Grid, and the script definition of the table in the Script Pane. This is identical to what we see in the [Connected Database Development](../ssdt/connected-database-development.md)section.
35
+
6. Double-click **Products.sql** under **Tables**. The **Table Designer** opens, showing the visual interpretation of the table in the Columns Grid, and the script definition of the table in the Script Pane. This is identical to what we see in the [Manage Tables, Relationships, and Fix Errors](../ssdt/manage-tables-relationships-and-fix-errors.md)section.
39
36
40
37
7. Uncheck the **Allow Nulls** box for the **CustomerId** column. Press CTRL + S to save the file.
41
38
@@ -59,7 +56,7 @@ The following two procedures essentially achieve the same goal by creating a new
59
56
60
57
6. Examine the hierarchy in the **Solution Explorer**. Expand the **dbo** folder and you will find separate **Functions**, **Tables** and **Views** folders. Notice that the tables and function are grouped under their schema folders.
61
58
62
-
7. Double-click **Products.sql** under **Tables**. The **Table Designer** opens, showing the visual interpretation of the table in the Columns Grid, and the script definition of the table in the Script Pane. This is identical to what we see in the [Connected Database Development](../ssdt/connected-database-development.md)section.
59
+
7. Double-click **Products.sql** under **Tables**. The **Table Designer** opens, showing the visual interpretation of the table in the Columns Grid, and the script definition of the table in the Script Pane. This is identical to what we see in the [Manage Tables, Relationships, and Fix Errors](../ssdt/manage-tables-relationships-and-fix-errors.md)section.
63
60
64
61
8. Uncheck the **Allow Nulls** box for the **CustomerId** column. Press CTRL + S to save the file.
Copy file name to clipboardExpand all lines: docs/ssdt/how-to-create-a-snapshot-of-a-project.md
+14-17Lines changed: 14 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,44 +18,41 @@ A **Data-tier Application** file provides you with a read-only representation of
18
18
19
19
In the event of a user error on a source database project, you can revert the source project to the state it was in when the snapshot was created. You can also establish snapshots at various stages of your development for baseline purpose.
20
20
21
-
> [!WARNING]
22
-
> The following procedures utilize entities created in previous procedures in the [Connected Database Development](../ssdt/connected-database-development.md) and [Project-Oriented Offline Database Development](../ssdt/project-oriented-offline-database-development.md) sections.
21
+
## To create a snapshot
23
22
24
-
### To create a snapshot
23
+
1. Right-click the **TradeDev** project in **Solution Explorer**, and select **Data-tier Application (\*.dacpac)...**.
25
24
26
-
1. Right-click the **TradeDev**project in **Solution Explorer**, and select **Data-tier Application (\*.dacpac)...**.
25
+
2. SSDT will attempt to build the project first. If there is no build error, a **Snapshot**folder is created in **Solution Explorer**. Inside this folder, SSDT creates a .dacpac file using the name format of "\<Project Name\>_YYYYMMDD_HH-MM-SS.dacpac".
27
26
28
-
2. SSDT will attempt to build the project first. If there is no build error, a **Snapshot** folder is created in **Solution Explorer**. Inside this folder, SSDT creates a .dacpac file using the name format of "\<Project Name\>_YYYYMMDD_HH-MM-SS.dacpac".
27
+
3. Right-click the .dacpac file and select **Rename**. Change the default file name to "TradeDev1.dacpac".
29
28
30
-
3.Right-click the .dacpac file and select **Rename**. Change the default file name to "TradeDev1.dacpac".
29
+
4.Right-click the **GetProductsBySupplier** function in **Solution Explorer**and select **Delete** to remove it from the project.
31
30
32
-
4. Right-click the **GetProductsBySupplier** function in **Solution Explorer** and select **Delete** to remove it from the project.
33
-
34
-
5. Follow the previous steps to create a new snapshot called **TradeDev2.dacpac**.
31
+
5. Follow the previous steps to create a new snapshot called **TradeDev2.dacpac**.
35
32
36
33
### To import a snapshot
37
34
38
-
1.Right-click the **TradeDev** project in **Solution Explorer**, select **Import**, then **Data-tier Application (\*.dacpac)...** from the contextual menus.
35
+
1. Right-click the **TradeDev** project in **Solution Explorer**, select **Import**, then **Data-tier Application (\*.dacpac)...** from the contextual menus.
39
36
40
-
2.In the **Import Data-tier Application** dialog box, click **Browse** to select **TradeDev1.dacpac** to be used as the source of the import.
37
+
2. In the **Import Data-tier Application** dialog box, click **Browse** to select **TradeDev1.dacpac** to be used as the source of the import.
41
38
42
39
Notice that the **Target project** section has been disabled, since the current project is the default target. Click **Start** to start the import.
43
40
44
-
3.Click **Finish** in the **Summary** page. In **Solution Explorer**, notice that the deleted table has been restored to the project.
41
+
3. Click **Finish** in the **Summary** page. In **Solution Explorer**, notice that the deleted table has been restored to the project.
45
42
46
43
> [!WARNING]
47
44
> The import snapshot will import all database entities in the snapshot schema to the project. This might create duplicate entities as a result. For example, each of the tables and view now contains an additional copy of itself named <ObjectName_1>. Right-click each of these duplicate objects in **Solution Explorer** and select **Delete** to remove it from the project.
48
45
49
46
### To compare snapshots
50
47
51
-
1.Right-click **TradeDev1.dacpac** in Solution Explorer and select **Schema Compare**. The **Schema Compare** window opens.
48
+
1. Right-click **TradeDev1.dacpac** in Solution Explorer and select **Schema Compare**. The **Schema Compare** window opens.
52
49
53
-
2.Use the **Data-tier Application File** options to set the source and target schemas. Make sure that the **Source Schema** is set to **TradeDev1.dacpac** in **Data-tier Application File**, and the **Target Schema** is set to **TradeDev2.dacpac**.
50
+
2. Use the **Data-tier Application File** options to set the source and target schemas. Make sure that the **Source Schema** is set to **TradeDev1.dacpac** in **Data-tier Application File**, and the **Target Schema** is set to **TradeDev2.dacpac**.
54
51
55
-
3.Click **OK** to start the compare. Notice that the deleted function is being highlighted as a difference between the old and new snapshot.
52
+
3. Click **OK** to start the compare. Notice that the deleted function is being highlighted as a difference between the old and new snapshot.
56
53
57
54
You can easily find the delta of different snapshots by using Schema Compare. In this case, you can find out how your project evolves during the development process.
58
55
59
-
## See Also
56
+
## See Also
57
+
60
58
[How to: Use Schema Compare to Compare Different Database Definitions](../ssdt/how-to-use-schema-compare-to-compare-different-database-definitions.md)
Copy file name to clipboardExpand all lines: docs/ssdt/how-to-create-new-database-objects-using-queries.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,6 @@ If you prefer to use scripts to create or edit views, stored procedures, functio
15
15
16
16
The Transact-SQL Editor is invoked when you use the **View Code** contextual menu to open a database entity in a connected database or a project. It is also automatically opened when you use the **New Query** contextual menu from the SQL Server Object Explorer, or add a new script object to a database project. If you are not connected to a database but want to execute a query against it, you can also use the **New Query Connection** dialog box by selecting **Transact-SQL Editor** menu from the **SQL** menu to connect to a database and launch the Transact-SQL Editor.
17
17
18
-
> [!WARNING]
19
-
> The following procedures use entities created in previous procedures in the [Connected Database Development](../ssdt/connected-database-development.md) section.
20
-
21
18
### To create a new table using a Transact-SQL query
22
19
23
20
1. Right-click the **Trade** database node and select **New Query**.
Copy file name to clipboardExpand all lines: docs/ssdt/how-to-debug-stored-procedures.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,6 @@ The Transact-SQL debugger allows you to interactively debug stored procedures by
17
17
18
18
This example shows how to create and debug a Transact-SQL stored procedure by stepping into it.
19
19
20
-
> [!WARNING]
21
-
> The following procedure uses entities created in procedures in the [Connected Database Development](../ssdt/connected-database-development.md) and [Project-Oriented Offline Database Development](../ssdt/project-oriented-offline-database-development.md) sections.
22
-
23
20
> [!NOTE]
24
21
> Transact-SQL debugging isn't available for Azure SQL Database or Azure SQL Managed Instance.
Copy file name to clipboardExpand all lines: docs/ssdt/how-to-delete-objects-and-resolve-dependencies.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,6 @@ f1_keywords:
17
17
18
18
When you rename or delete an object in **SQL Server Object Explorer**, SQL Server Data Tools automatically detects all its dependency objects, and will prepare an ALTER script to rename or drop the dependency as needed.
19
19
20
-
> [!WARNING]
21
-
> The following procedures uses entities created in previous procedures in the [Connected Database Development](../ssdt/connected-database-development.md) section.
22
-
23
20
### To delete a database
24
21
25
22
1. Right-click a database in **SQL Server Object Explorer**, and select **Delete**.
0 commit comments