Skip to content

Commit 9864882

Browse files
SQL tools content freshness pass (#33754)
Co-authored-by: Erin Stellato <[email protected]>
1 parent 14aee30 commit 9864882

5 files changed

+546
-501
lines changed
Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Install SQL Server Data Tools (SSDT)
2+
title: "Install SQL Server Data Tools (SSDT)"
33
description: "Learn about SQL Server Data Tools (SSDT). See how to install this database development tool set with Visual Studio 2019 and 2022."
44
author: dzsquared
55
ms.author: drskwier
6-
ms.reviewer: maghan
7-
ms.date: 05/30/2024
6+
ms.reviewer: maghan, randolphwest
7+
ms.date: 04/08/2025
88
ms.service: sql
99
ms.subservice: ssdt
1010
ms.topic: install-set-up-deploy
@@ -29,7 +29,7 @@ The release notes for SSDT and its components are available for [Visual Studio 2
2929

3030
SSDT is installed as a Visual Studio component, both for [online installation](#install-ssdt-with-visual-studio) and [offline installation](#offline-installation). Analysis Services, Integration Services, and Reporting Services projects are available as separate extensions for each version.
3131

32-
> [!NOTE]
32+
> [!NOTE]
3333
> SDK-style SQL projects in Visual Studio are available as part of the **SQL Server Data Tools, SDK-style (preview)** feature for Visual Studio 2022, separate from the original SSDT. The SDK-style project format is based on the new SDK-style projects introduced in .NET Core and is the format used by the SQL Database Projects extension for Azure Data Studio and VS Code. For more information, see [SQL Server Data Tools, SDK-style (preview)](sql-server-data-tools-sdk-style.md).
3434
3535
## Install SSDT with Visual Studio
@@ -40,58 +40,70 @@ To modify the installed Visual Studio workloads to include SSDT, use the Visual
4040

4141
1. Launch the Visual Studio Installer. In the Windows Start menu, you can search for "installer."
4242

43-
2. In the installer, select for the edition of Visual Studio that you want to add SSDT to, and then choose **Modify**.
43+
1. In the installer, select **Modify** for the version of Visual Studio to which you want to add SSDT.
4444

45-
3. Select **SQL Server Data Tools** under **Data storage and processing** in the list of workloads.
45+
1. Select **SQL Server Data Tools** under **Data storage and processing** in the list of workloads.
4646

47-
:::image type="content" source="../ssdt/media/download-sql-server-data-tools-ssdt/data-workload-2022.png" alt-text="Screenshot of Data storage and processing workload 2022." lightbox="../ssdt/media/download-sql-server-data-tools-ssdt/data-workload-2022.png":::
47+
:::image type="content" source="media/download-sql-server-data-tools-ssdt/data-workload-2022.png" alt-text="Screenshot of Data storage and processing workload 2022." lightbox="media/download-sql-server-data-tools-ssdt/data-workload-2022.png":::
4848

4949
### Visual Studio for Arm64
5050

51-
Visual Studio is available as a [native Arm64 application](/visualstudio/install/visual-studio-on-arm-devices) on Windows 11 Arm64. In Visual Studio 17.10 and later, SSDT is available for Arm64 with [some limitations](https://techcommunity.microsoft.com/t5/azure-sql-blog/announcing-sql-server-data-tools-ssdt-for-arm64-architecture-in/ba-p/4103928). To install or configure Visual Studio to include SSDT on an Arm64 device:
51+
Visual Studio is available as a [native Arm64 application](/visualstudio/install/visual-studio-on-arm-devices) on Windows 11 Arm64. In Visual Studio 17.10 and later, SSDT is available for Arm64 with [some limitations](https://techcommunity.microsoft.com/blog/azuresqlblog/announcing-sql-server-data-tools-ssdt-for-arm64-architecture-in-visual-studio-17/4103928). To install or configure Visual Studio to include SSDT on an Arm64 device:
5252

5353
1. Install Visual Studio 17.10 or later on your Arm64 device.
5454

55-
2. In the installer, select the **Individual components** tab and search for **SQL Server Data Tools**.
56-
57-
:::image type="content" source="../ssdt/media/download-sql-server-data-tools-ssdt/ssdt-component-install.png" alt-text="Screenshot of SQL Server Data Tools for Arm64." lightbox="../ssdt/media/download-sql-server-data-tools-ssdt/ssdt-component-install.png":::
55+
1. In the installer, select the **Individual components** tab and search for **SQL Server Data Tools**.
5856

59-
3. Select **SQL Server Data Tools** and then choose **Modify**.
57+
:::image type="content" source="media/download-sql-server-data-tools-ssdt/ssdt-component-install.png" alt-text="Screenshot of SQL Server Data Tools for Arm64." lightbox="media/download-sql-server-data-tools-ssdt/ssdt-component-install.png":::
58+
59+
1. Select **SQL Server Data Tools** and then choose **Modify**.
6060

6161
## Install extensions for Analysis Services, Integration Services, and Reporting Services
6262

6363
For Analysis Services (SSAS), Integration Services (SSIS), or Reporting Services (SSRS) projects, you can install the appropriate [extensions](/visualstudio/ide/finding-and-using-visual-studio-extensions) from within Visual Studio with **Extensions** > **Manage Extensions** or from the [Marketplace](https://marketplace.visualstudio.com/search?term=services&target=VS&category=All%20categories&vsVersion=&sortBy=Relevance).
6464

65-
### Extensions for Visual Studio 2022
65+
### [Visual Studio 2022 extensions](#tab/vs2022)
66+
67+
Extensions for Visual Studio 2022:
6668

6769
- [Analysis Services](https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftAnalysisServicesModelingProjects2022)
6870
- [Integration Services](https://marketplace.visualstudio.com/items?itemName=SSIS.MicrosoftDataToolsIntegrationServices)
6971
- [Reporting Services](https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftReportProjectsforVisualStudio2022)
7072

71-
### Extensions for Visual Studio 2019
73+
### [Visual Studio 2019 extensions](#tab/vs2019)
74+
75+
Extensions for Visual Studio 2019:
7276

7377
- [Analysis Services](https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftAnalysisServicesModelingProjects)
7478
- [Integration Services](https://marketplace.visualstudio.com/items?itemName=SSIS.SqlServerIntegrationServicesProjects)
7579
- [Reporting Services](https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftReportProjectsforVisualStudio)
7680

81+
---
82+
7783
## Supported SQL versions
7884

79-
### Supported SQL versions in Visual Studio 2022
85+
### [Supported SQL versions in Visual Studio 2022](#tab/vs2022)
8086

81-
| Project Templates | SQL Platforms Supported |
87+
Supported SQL versions in Visual Studio 2022:
88+
89+
| Project templates | SQL platforms supported |
8290
| --- | --- |
83-
| Relational databases | [!INCLUDE [sssql16-md](../includes/sssql16-md.md)] - [!INCLUDE [sssql22-md](../includes/sssql22-md.md)]<br /><br />Azure SQL Database, Azure SQL Managed Instance<br /><br />Azure Synapse Analytics Dedicated Pools <br /> Azure Synapse Analytics Serverless Pools (requires VS2022 17.7 see [the release notes](/visualstudio/releases/2022/release-notes-v17.7#support-for-serverless-sql-pool-in-ssdt))<br /><br />Warehouse in Microsoft Fabric (requires VS2022 17.12)<br/>SQL database in Microsoft Fabric (requires VS2022 17.12) |
84-
| Analysis Services models<br /><br />Reporting Services reports | SQL Server 2016 - SQL Server 2022 |
91+
| Relational databases | [!INCLUDE [sssql16-md](../includes/sssql16-md.md)] - [!INCLUDE [sssql22-md](../includes/sssql22-md.md)]<br /><br />Azure SQL Database, Azure SQL Managed Instance<br /><br />Azure Synapse Analytics Dedicated Pools<br />Azure Synapse Analytics Serverless Pools (requires VS2022 17.7 see [the release notes](/visualstudio/releases/2022/release-notes-v17.7#support-for-serverless-sql-pool-in-ssdt))<br /><br />Warehouse in Microsoft Fabric (requires VS2022 17.12)<br />SQL database in Microsoft Fabric (requires VS2022 17.12) |
92+
| Analysis Services models<br /><br />Reporting Services reports` | SQL Server 2016 - SQL Server 2022 |
8593
| Integration Services packages | SQL Server 2019 - SQL Server 2022 |
8694

87-
### Supported SQL versions in Visual Studio 2019
95+
### [Supported SQL versions in Visual Studio 2019](#tab/vs2019)
96+
97+
Supported SQL versions in Visual Studio 2019:
8898

89-
| Project Templates | SQL Platforms Supported |
99+
| Project templates | SQL platforms supported |
90100
| --- | --- |
91101
| Relational databases | SQL Server 2012 - SQL Server 2019<br /><br />Azure SQL Database, Azure SQL Managed Instance<br /><br />Azure Synapse Analytics (dedicated pools only) |
92102
| Analysis Services models<br /><br />Reporting Services reports | SQL Server 2008 - SQL Server 2019 |
93103
| Integration Services packages | SQL Server 2012 - SQL Server 2022 |
94104

105+
---
106+
95107
## Offline installation
96108

97109
For scenarios where offline installation is required, such as low bandwidth or isolated networks, SSDT is available for offline installation. Two approaches are available:
@@ -109,26 +121,15 @@ To understand the license terms and use cases for Visual Studio, refer to [Visua
109121

110122
To download and install SSDT for Visual Studio 2017, or an older version of SSDT, see [Previous releases of SQL Server Data Tools (SSDT and SSDT-BI)](previous-releases-of-sql-server-data-tools-ssdt-and-ssdt-bi.md).
111123

112-
## See also
124+
## Related content
113125

114126
- [SSDT Team Blog](/archive/blogs/ssdt/)
115-
116127
- [DACFx API Reference](/dotnet/api/microsoft.sqlserver.dac)
117-
118128
- [Download SQL Server Management Studio (SSMS)](../ssms/download-sql-server-management-studio-ssms.md)
119-
120-
- [SQL projects in Azure Data Studio and VS Code](/azure-data-studio/extensions/sql-database-project-extension)
121-
122-
## Next steps
123-
124-
After installation of SSDT, work through these tutorials to learn how to create databases, packages, data models, and reports using SSDT.
125-
129+
- [SQL Database Projects extension](/azure-data-studio/extensions/sql-database-project-extension)
126130
- [Project-Oriented Offline Database Development](project-oriented-offline-database-development.md)
127-
128-
- [SSIS Tutorial: Create a Simple ETL Package](../integration-services/ssis-how-to-create-an-etl-package.md)
129-
131+
- [SSIS How to Create an ETL Package](../integration-services/ssis-how-to-create-an-etl-package.md)
130132
- [Analysis Services tutorials](/analysis-services/analysis-services-tutorials-ssas)
133+
- [Create a basic table report (SSRS tutorial)](../reporting-services/create-a-basic-table-report-ssrs-tutorial.md)
131134

132-
- [Create a Basic Table Report (SSRS Tutorial)](../reporting-services/create-a-basic-table-report-ssrs-tutorial.md)
133-
134-
[!INCLUDE[get-help-options](../includes/paragraph-content/get-help-options.md)]
135+
[!INCLUDE [get-help-options](../includes/paragraph-content/get-help-options.md)]
Lines changed: 85 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
2-
title: Rename and Refactoring to Make Changes to your Database Objects
2+
title: Rename and Refactoring to Make Changes to Your Database Objects
33
description: Learn about the Rename and Refactor menus in the Transact-SQL Editor. See how to rename types, switch object schemas, expand wildcards, and fully qualify names.
44
author: subhojit-msft
55
ms.author: subasak
6-
ms.date: 05/07/2023
6+
ms.reviewer: randolphwest
7+
ms.date: 04/08/2025
78
ms.service: sql
89
ms.subservice: ssdt
910
ms.topic: how-to
@@ -15,81 +16,90 @@ f1_keywords:
1516
- "sql.data.tools.dbrefactoring.renameserverdatabasedialog"
1617
---
1718

18-
# How to: Use Rename and Refactoring to Make Changes to your Database Objects
19+
# How to: Use rename and refactoring to make changes to your database objects
20+
21+
The **Refactor** contextual menu in the Transact-SQL Editor allows you to rename or move an object to a different schema and preview all affected areas before committing the change. You can also use the **Refactor** menu to fully qualify all references to database objects, or expand any wildcard characters in `SELECT` statements in your database project.
1922

20-
The Refactor contextual menu in the Transact-SQL Editor allows you to rename or move an object to a different schema, and do a preview of all affected areas before committing the change. You can also use the Refactor menu to fully qualify all references to database objects, or expand any wildcard characters in `SELECT` statements in your database project.
21-
2223
> [!WARNING]
2324
> The following procedure uses entities created in previous procedures in the [Project-Oriented Offline Database Development](../ssdt/project-oriented-offline-database-development.md) sections.
24-
25-
### To rename a type
26-
27-
1. Right-click the **Products** table (Products.sql) in **Solution Explorer** and select **View Code** to open the script in Transact-SQL editor.
28-
29-
2. Right-click `[Products]` in the script, select **Refactor**, and **Rename**.
30-
31-
3. In the **New Name** field, change it to **Product**. Leave the **Preview Changes** option checked and click **OK**.
32-
33-
4. In the next screen, you will be able to preview a list of scripts that are going to be affected by this rename operation. Specifically, all the places that refer to `Products` will be highlighted. This is very similar to the Find All References task in the previous procedure. Click anything on the top pane and view the actual change in the scripts (highlighted in green) in the bottom pane.
34-
35-
5. Click **Apply**.
36-
37-
6. For script files that are already opened in Table Designer or Transact-SQL Editor, notice that the Transact-SQL Editor has highlighted locations where changes have taken place with a green bar on the left.
38-
39-
7. Notice the addition of **TradeDev.refactorlog** in **Solution Explorer**. Double-click to open it. It contains an XML representation of all the changes in this session.
40-
41-
8. Press F5 to build and deploy the project to the local database.
42-
43-
9. Right-click the **TradeDev** database under **Local** in **SQL Server Object Explorer**, and select **Refresh**.
44-
45-
10. Expand **Tables**, and notice that the **Products** table has been renamed.
46-
47-
11. Right-click **Product** and select **View Data**. Notice that existing data is kept intact regardless of the rename operation.
25+
26+
## Rename a type
27+
28+
1. Right-click the `Products` table (`Products.sql`) in **Solution Explorer**, and select **View Code** to open the script in Transact-SQL Editor.
29+
30+
1. Right-click `[Products]` in the script, select **Refactor**, and **Rename**.
31+
32+
1. In the **New Name** field, change it to `Product`. Leave the **Preview Changes** option checked and select **OK**.
33+
34+
1. In the next screen, you can preview a list of scripts that this rename operation is going to affect. Specifically, all the places that refer to `Products` are highlighted. This process is similar to the Find All References task in the previous procedure. Select anything on the top pane and view the actual change in the scripts (highlighted in green) in the bottom pane.
35+
36+
1. Select **Apply**.
37+
38+
1. For script files that are already opened in Table Designer or Transact-SQL Editor, the Transact-SQL Editor highlights the locations where changes took place with a green bar on the left.
39+
40+
1. Notice the addition of `TradeDev.refactorlog` in **Solution Explorer**. Double-click to open it. It contains an XML representation of all the changes in this session.
41+
42+
1. Press **F5** to build and deploy the project to the local database.
43+
44+
1. Right-click the `TradeDev` database under **Local** in **SQL Server Object Explorer**, and select **Refresh**.
45+
46+
1. Expand **Tables**, and you see that the `Products` table was renamed.
47+
48+
1. Right-click `Product` and select **View Data**. Existing data is kept intact regardless of the rename operation.
4849

4950
> [!WARNING]
50-
> If a refactor log is deleted, the complete history of the refactoring will be deleted. When the project is published to a database where prior refactor operations haven't been applied, any refactor operations completed before the refactor file was deleted, will be published as drop and create operations. As a result, data loss may occur.
51-
52-
### To expand wildcards
53-
54-
1. Expand the **Functions** node in **Solution Explorer**, and double-click **GetProductsBySupplier.sql**.
55-
56-
2. Place the cursor on the asterisk in this line and right-click. Select **Refactor**, and **Expand Wildcards**.
57-
58-
```
59-
SELECT * from Product p
60-
```
61-
62-
3. In the **Preview Changes** dialog box, click `SELECT * from Product p` on the top pane to highlight it.
63-
64-
4. In the **Preview Changes** pane below, notice that `*` has been expanded to the following in the script.
65-
66-
```
67-
[Id], [Name], [ShelfLife], [SupplierId], [CustomerId]
68-
```
69-
70-
5. Click the **Apply** button. Notice the line that contains changes brought forth by the expand operation is again highlighted with a green bar on the left.
71-
72-
### To fully qualify database object names
73-
74-
1. Make sure **GetProductsBySupplier.sql** is still open in Transact-SQL Editor.
75-
76-
2. Place the cursor on `Product` in this line and right-click. Select **Refactor**, and **Fully-Qualify Names**.
77-
78-
```
79-
SELECT [Id], [Name], [ShelfLife], [SupplierId], [CustomerId] from Product p
80-
```
81-
82-
3. Click the **Apply** button in the **Preview Changes** dialog box. Notice the all the object references have been updated to include the name of the object's schema and, if the object has a parent, the name of the parent.
83-
84-
```
85-
SELECT [p].[Id], [p].[Name], [p].[ShelfLife], [p].[SupplierId], [p].[CustomerId] from [dbo].[Product] p
86-
```
87-
88-
### To move schema
89-
90-
1. Right-click the object that you want move. Select **Refactor**, and **Move Schema**.
91-
92-
2. In the **New Schema** list, click the name of the schema into which you want to move the object. Click OK.
93-
94-
If you selected the **Preview changes** check box, **the Preview Changes** dialog box appears. Otherwise, the object name is updated, and the object is moved to the new schema.
95-
51+
> If a refactor log is deleted, the complete history of the refactoring is also deleted. When the project is published to a database where previous refactor operations aren't applied, any refactor operations completed before the refactor file was deleted, are published as drop and create operations. As a result, data loss can occur.
52+
53+
## Expand wildcards
54+
55+
1. Expand the **Functions** node in **Solution Explorer**, and double-click `GetProductsBySupplier.sql`.
56+
57+
1. Place the cursor on the asterisk in this line and right-click. Select **Refactor**, and **Expand Wildcards**.
58+
59+
```sql
60+
SELECT * FROM Product AS p;
61+
```
62+
63+
1. In the **Preview Changes** dialog box, select `SELECT * from Product p` on the top pane to highlight it.
64+
65+
1. In the **Preview Changes** pane below, notice that `*` has been expanded to the following columns in the script.
66+
67+
```sql
68+
[Id], [Name], [ShelfLife], [SupplierId], [CustomerId]
69+
```
70+
71+
1. Select the **Apply** button. Notice the line that contains changes brought forth by the expand operation is again highlighted with a green bar on the left.
72+
73+
## Fully qualify database object names
74+
75+
1. Make sure `GetProductsBySupplier.sql` is still open in Transact-SQL Editor.
76+
77+
1. Place the cursor on `Product` in this line and right-click. Select **Refactor**, and **Fully-Qualify Names**.
78+
79+
```sql
80+
SELECT [Id],
81+
[Name],
82+
[ShelfLife],
83+
[SupplierId],
84+
[CustomerId]
85+
FROM Product AS p;
86+
```
87+
88+
1. Select the **Apply** button in the **Preview Changes** dialog box. All the object references are updated to include the name of the object's schema and, if the object has a parent, the name of the parent.
89+
90+
```sql
91+
SELECT [p].[Id],
92+
[p].[Name],
93+
[p].[ShelfLife],
94+
[p].[SupplierId],
95+
[p].[CustomerId]
96+
FROM [dbo].[Product] AS p;
97+
```
98+
99+
## Move schema
100+
101+
1. Right-click the object that you want move. Select **Refactor**, and **Move Schema**.
102+
103+
1. In the **New Schema** list, select the name of the schema into which you want to move the object. Select OK.
104+
105+
If you select the **Preview changes** check box, **the Preview Changes** dialog box appears. Otherwise, the object name is updated, and the object is moved to the new schema.

0 commit comments

Comments
 (0)