Skip to content

Commit 7af66ef

Browse files
committed
[sqlpackage] Update download sqlpackage article (UUF)
1 parent ab00cb7 commit 7af66ef

File tree

1 file changed

+67
-39
lines changed

1 file changed

+67
-39
lines changed

docs/tools/sqlpackage/sqlpackage-download.md

Lines changed: 67 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
---
2-
title: Download and install SqlPackage
2+
title: Download and Install SqlPackage
33
description: "Download and Install SqlPackage for Windows, macOS, or Linux"
44
author: "dzsquared"
55
ms.author: "drskwier"
6-
ms.reviewer: "maghan"
7-
ms.date: 11/21/2024
6+
ms.reviewer: maghan
7+
ms.date: 12/23/2024
88
ms.service: sql
99
ms.subservice: tools-other
1010
ms.topic: conceptual
11-
ms.custom: tools|sos, intro-installation, linux-related-content
11+
ms.custom:
12+
- tools|sos
13+
- intro-installation
14+
- linux-related-content
1215
---
1316

1417
# Download and install SqlPackage
@@ -21,12 +24,12 @@ SqlPackage runs on Windows, macOS, and Linux, and is available to install throug
2124

2225
SqlPackage is developed and released for both .NET 8 and .NET Framework. Installing the .NET 8 SqlPackage version is recommended via the [convenient `dotnet tool` method](#installation-cross-platform), which is cross-platform and easy to update, or via the [portable self-contained .zip download](#installation-file-download-alternative). The .NET 8 SqlPackage releases benefit from the continual advances to the performance and scalability of .NET as part of the [focus on for modern applications](/dotnet/core/introduction#net-ecosystem), which contrasts to the maintenance support of .NET Framework for Windows. The .NET Framework version is only available as a [.msi Windows installer](#windows-net-framework).
2326

24-
> [!NOTE]
27+
> [!NOTE]
2528
> Previously, SqlPackage had a distinct version number (19) and build number (160.x). Beginning with version 161, the version number of SqlPackage matches the DacFx version number it is associated with (eg 162.0.52).
2629
2730
## Installation, cross-platform
2831

29-
Installing SqlPackage as a [dotnet tool](/dotnet/core/tools/global-tools) requires the [.NET SDK](https://dotnet.microsoft.com/download/dotnet/8.0) to be installed on your machine. Installing SqlPackage as a global tool makes it available on your path as `sqlpackage` and is the recommended method to install SqlPackage for Windows, macOS, and Linux. SqlPackage is available as a dotnet tool for .NET 6 and .NET 8.
32+
Installing SqlPackage as a [dotnet tool](/dotnet/core/tools/global-tools) requires the [.NET SDK](https://dotnet.microsoft.com/download/dotnet/8.0) to be installed on your machine. Installing SqlPackage as a global tool makes it available on your path as `sqlpackage` and is the recommended method to install SqlPackage for Windows, macOS, and Linux. SqlPackage is available as a dotnet tool for .NET 8 and later.
3033

3134
To install SqlPackage as a global .NET tool, run the following command:
3235

@@ -36,20 +39,48 @@ To install SqlPackage as a global .NET tool, run the following command:
3639

3740
More information on the options available with the `dotnet tool install` command can be found in the [dotnet tool install documentation](/dotnet/core/tools/dotnet-tool-install).
3841

39-
4042
To update SqlPackage to the latest version, run the following command:
4143

4244
```bash
4345
dotnet tool update -g microsoft.sqlpackage
4446
```
4547

46-
4748
To uninstall SqlPackage, run the following command:
4849

4950
```bash
5051
dotnet tool uninstall -g microsoft.sqlpackage
5152
```
5253

54+
### Troubleshoot installation
55+
56+
If you encounter issues during installation, follow these steps:
57+
58+
1. **Ensure .NET SDK is installed**: Verify that the .NET SDK is installed on your machine by running the following command:
59+
60+
```bash
61+
dotnet --list-sdks
62+
```
63+
64+
If the .NET SDK isn't listed, download and install it from the [.NET SDK download page](https://dotnet.microsoft.com/download/dotnet/8.0).
65+
66+
2. **Verify NuGet source configuration**: Ensure that `nuget.org` is a configured NuGet source for dotnet. List the configured NuGet sources by running:
67+
68+
```bash
69+
dotnet nuget list source
70+
```
71+
72+
If `nuget.org` isn't listed, add it as a NuGet source using the following command:
73+
74+
```bash
75+
dotnet nuget add source https://api.nuget.org/v3/index.json
76+
```
77+
78+
3. **Retry installation**: After verifying the .NET SDK installation and NuGet source configuration, retry installing SqlPackage using the appropriate command:
79+
80+
```bash
81+
dotnet tool install -g microsoft.sqlpackage
82+
```
83+
5384
### Preview releases
5485

5586
Preview releases of SqlPackage are available with the dotnet tool feed. To access preview releases, use the `--prerelease` option with the `dotnet tool` command. For example, to install the latest preview release, run the following command:
@@ -66,37 +97,34 @@ To update SqlPackage to the latest preview version, run the following command:
6697

6798
A list of preview releases is available on the [dotnet tool feed for SqlPackage](https://www.nuget.org/packages/microsoft.sqlpackage/).
6899

69-
70100
## Installation, file download (alternative)
71101

72102
SqlPackage is also prepared as a self-contained download for Windows, macOS, and Linux. No .NET install is required, however, the dependencies included in this .zip download are updated more frequently in the [dotnet tool option for SqlPackage](#installation-cross-platform). The following links are for the latest version of SqlPackage:
73103

74-
|Platform|Download|
75-
|:---|:---|
76-
|Windows .NET 8 |[.zip file](https://go.microsoft.com/fwlink/?linkid=2297835)|
77-
|Windows|[.msi file](https://go.microsoft.com/fwlink/?linkid=2297931)|
78-
|macOS .NET 8 |[.zip file](https://go.microsoft.com/fwlink/?linkid=2297647)|
79-
|Linux .NET 8 |[.zip file](https://go.microsoft.com/fwlink/?linkid=2297646)|
80-
81-
104+
| Platform | Download |
105+
| :--- | :--- |
106+
| Windows .NET 8 | [.zip file](https://go.microsoft.com/fwlink/?linkid=2297835) |
107+
| Windows | [.msi file](https://go.microsoft.com/fwlink/?linkid=2297931) |
108+
| macOS .NET 8 | [.zip file](https://go.microsoft.com/fwlink/?linkid=2297647) |
109+
| Linux .NET 8 | [.zip file](https://go.microsoft.com/fwlink/?linkid=2297646) |
82110

83111
### Linux
84112

85113
1. Download [SqlPackage for Linux](https://aka.ms/sqlpackage-linux)
86-
2. Extract the file and launch SqlPackage, open a new Terminal window and type the following commands:
114+
1. Extract the file and launch SqlPackage, open a new Terminal window and type the following commands:
87115

88116
```bash
89117
cd ~
90118
mkdir sqlpackage
91-
unzip ~/Downloads/sqlpackage-linux-<version string>.zip -d ~/sqlpackage
119+
unzip ~/Downloads/sqlpackage-linux-<version string>.zip -d ~/sqlpackage
92120
echo "export PATH=\"\$PATH:$HOME/sqlpackage\"" >> ~/.bashrc
93121
chmod a+x ~/sqlpackage/sqlpackage
94122
source ~/.bashrc
95123
sqlpackage
96124
```
97125

98-
> [!NOTE]
99-
> You may have missing dependencies. Use the following commands to install these dependencies depending on your version of Linux:
126+
> [!NOTE]
127+
> You might have missing dependencies. Use the following commands to install these dependencies depending on your version of Linux:
100128
101129
**Debian:**
102130

@@ -120,7 +148,7 @@ SqlPackage is also prepared as a self-contained download for Windows, macOS, and
120148
### macOS
121149

122150
1. Download [SqlPackage for macOS](https://aka.ms/sqlpackage-macos)
123-
2. Extract the file and launch SqlPackage, open a new Terminal window and type the following commands:
151+
1. Extract the file and launch SqlPackage, open a new Terminal window and type the following commands:
124152

125153
```bash
126154
mkdir sqlpackage
@@ -131,35 +159,37 @@ SqlPackage is also prepared as a self-contained download for Windows, macOS, and
131159
sqlpackage
132160
```
133161

134-
> [!NOTE]
135-
> Security settings may require modification to run SqlPackage on macOS. Use the following commands to interact with Gatekeeper from the command line.
162+
> [!NOTE]
163+
> Security settings might require modification to run SqlPackage on macOS. Use the following commands to interact with Gatekeeper from the command line.
136164
137165
**Before executing SqlPackage:**
166+
138167
```bash
139168
sudo spctl --master-disable
140169
```
141170

142171
**After executing SqlPackage:**
172+
143173
```bash
144174
sudo spctl --master-enable
145175
```
146176

147177
### Windows (.NET 8)
148178

149179
1. Download [SqlPackage for Windows](https://aka.ms/sqlpackage-windows)
150-
2. Extract the file by right-clicking on the file in Windows Explorer, and selecting 'Extract All...', and select the target directory
151-
3. Open a new Terminal window and cd to the location where SqlPackage was extracted:
180+
1. Extract the file by right-clicking on the file in Windows Explorer, and selecting 'Extract All...', and select the target directory
181+
1. Open a new Terminal window and cd to the location where SqlPackage was extracted:
152182

153183
```cmd
154184
> sqlpackage
155185
```
156186

157187
### Windows (.NET Framework)
158188

159-
This release of SqlPackage includes a standard Windows installer experience, and a .zip:
189+
This release of SqlPackage includes a standard Windows installer experience, and a .zip:
160190

161191
1. Download and run the [DacFramework.msi installer for Windows](https://aka.ms/dacfx-msi)
162-
2. Open a new Command Prompt window, and run SqlPackage
192+
1. Open a new Command Prompt window, and run SqlPackage
163193
- SqlPackage is installed to the ```C:\Program Files\Microsoft SQL Server\160\DAC\bin``` folder
164194

165195
### Uninstall SqlPackage
@@ -171,6 +201,7 @@ If you installed SqlPackage with a .zip or other archive, then delete the files.
171201
### Automated environments
172202

173203
Evergreen links are available for downloading the latest Sqlpackage versions:
204+
174205
- Linux ([https://aka.ms/sqlpackage-linux](https://aka.ms/sqlpackage-linux))
175206
- macOS ([https://aka.ms/sqlpackage-macos](https://aka.ms/sqlpackage-macos))
176207
- Windows ([https://aka.ms/sqlpackage-windows](https://aka.ms/sqlpackage-windows))
@@ -186,10 +217,9 @@ Adding the NuGet package to a .NET project is accomplished via the .NET CLI with
186217
dotnet add package Microsoft.SqlServer.DacFx
187218
```
188219

189-
> [!NOTE]
220+
> [!NOTE]
190221
> Additional NuGet packages were published under the DacFx name, "Microsoft.SqlServer.DacFx.x64" and "Microsoft.SqlServer.DacFx.x86". Support for both platforms is covered under the "Microsoft.SqlServer.DacFx" package. New references should be made to this package, not the x64 or x86 variants.
191222
192-
193223
## Supported Operating Systems
194224

195225
SqlPackage runs on Windows, macOS, and Linux and is built using .NET 8. The [.NET 8 OS requirements](https://github.com/dotnet/core/blob/main/release-notes/8.0/supported-os.md) are minimum requirements for SqlPackage, which has extra requirements due to its dependencies.
@@ -228,13 +258,11 @@ SqlPackage .NET 8 macOS:
228258
SqlPackage .NET 8 Linux:
229259
[Chinese (Simplified)](https://go.microsoft.com/fwlink/?linkid=2297646&clcid=0x804) | [Chinese (Traditional)](https://go.microsoft.com/fwlink/?linkid=2297646&clcid=0x404) | [English (United States)](https://go.microsoft.com/fwlink/?linkid=2297646&clcid=0x409) | [French](https://go.microsoft.com/fwlink/?linkid=2297646&clcid=0x40c) | [German](https://go.microsoft.com/fwlink/?linkid=2297646&clcid=0x407) | [Italian](https://go.microsoft.com/fwlink/?linkid=2297646&clcid=0x410) | [Japanese](https://go.microsoft.com/fwlink/?linkid=2297646&clcid=0x411) | [Korean](https://go.microsoft.com/fwlink/?linkid=2297646&clcid=0x412) | [Portuguese (Brazil)](https://go.microsoft.com/fwlink/?linkid=2297646&clcid=0x416) | [Russian](https://go.microsoft.com/fwlink/?linkid=2297646&clcid=0x419) | [Spanish](https://go.microsoft.com/fwlink/?linkid=2297646&clcid=0x40a)
230260

261+
## Related content
231262

232-
## Next Steps
233-
234-
- Learn more about [SqlPackage](sqlpackage.md)
235-
- Learn more about [SqlPackage in CI/CD pipelines](sqlpackage-pipelines.md)
236-
- Learn more about [troubleshooting issues with SqlPackage](troubleshooting-issues-and-performance-with-sqlpackage.md)
237-
- Learn more about [SQL projects](../sql-database-projects/sql-database-projects.md)
238-
- Share feedback on SqlPackage in the [DacFx GitHub repository](https://github.com/microsoft/DacFx)
239-
240-
[Microsoft Privacy Statement](https://go.microsoft.com/fwlink/?LinkId=521839)
263+
- [SqlPackage](sqlpackage.md)
264+
- [SqlPackage in CI/CD pipelines](sqlpackage-pipelines.md)
265+
- [troubleshooting issues with SqlPackage](troubleshooting-issues-and-performance-with-sqlpackage.md)
266+
- [SQL projects](../sql-database-projects/sql-database-projects.md)
267+
- [DacFx GitHub repository](https://github.com/microsoft/DacFx)
268+
- [Microsoft Privacy Statement](https://go.microsoft.com/fwlink/?LinkId=521839)

0 commit comments

Comments
 (0)