VOOZH about

URL: https://www.nuget.org/packages/microsoft.sqlpackage/

⇱ NuGet Gallery | Microsoft.SqlPackage 170.4.83




👁 Image
Microsoft.SqlPackage 170.4.83

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet tool install --global Microsoft.SqlPackage --version 170.4.83
 
 
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
 
if you are setting up this repo
dotnet tool install --local Microsoft.SqlPackage --version 170.4.83
 
 
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Microsoft.SqlPackage&version=170.4.83
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Microsoft.SqlPackage --version 170.4.83
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Microsoft SQL Server Data-Tier Application Framework (DacFx) SqlPackage CLI

Overview

SqlPackage is a cross-platform command-line utility for creating and deploying .dacpac and .bacpac packages. SqlPackage can be installed as a dotnet tool or downloaded as a standalone executable for Windows, macOS, or Linux. Use this tool to automate database development and deployment tasks for Microsoft SQL Server, Microsoft Azure SQL Database, and SQL in Fabric. SqlPackage is built on top of the Microsoft SQL Server Data-Tier Application Framework (DacFx).

📗 SqlPackage command-line reference documentation

📗 SQL projects database DevOps documentation

The Microsoft SQL Server Data-Tier Application Framework (DacFx) is a .NET library which provides application lifecycle services for database development and management for Microsoft SQL databases. DacFx supports various database deployment and management scenarios, including extracting / exporting a live database to a DAC package, deploying a DAC package to a new or existing database, and migrating from on-premises to Microsoft Azure. DacFx can target all supported versions of SQL Server, as well as Microsoft Azure SQL and SQL in Fabric. DacFx is also available as a NuGet package for use in your own .NET applications.

Installation

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

dotnet tool install -g microsoft.sqlpackage

More information on the options available with the dotnet tool install command can be found in the dotnet tool install documentation.

To update SqlPackage to the latest version, run the following command:

dotnet tool update -g microsoft.sqlpackage

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:

dotnet tool install -g --prerelease microsoft.sqlpackage

Usage

The following examples demonstrate some basic functionality of the SqlPackage CLI. For more commands and parameters, refer to the SqlPackage command-line reference documentation.

Example: Deploy a .dacpac to a new or existing database

sqlpackage /Action:Publish /SourceFile:"path\to\your.dacpac" /TargetConnectionString:"your-database-connection-string"

Example: Extract a database to a .dacpac

sqlpackage /Action:Extract /SourceConnectionString:"your-database-connection-string" /TargetFile:"path\to\output.dacpac"

Example: Extract a database to .sql files organized by object type and schema

sqlpackage /Action:Extract /SourceConnectionString:"your-database-connection-string" /TargetFile:"path\to\output\directory" /ExtractTarget:SchemaObjectType

Related components

Component Links Summary
DacFx 📦 NuGet<br/>📘 API Docs The Microsoft SQL Server Data-Tier Application Framework (Microsoft.SqlServer.DacFx) is a .NET library which provides application lifecycle services for database development and management for Microsoft SQL Server and Microsoft Azure SQL Databases. Preview versions of DacFx are frequently released to NuGet.
DacpacVerify 📦 Tool Microsoft.DacpacVerify is a cross-platform command-line utility for checking that two .dacpac packages match, including pre/post-deployment scripts and SQLCMD variables.
Dacpacs.(Master,Msdb) 📦 Master<br/>📦 Msdb Microsoft.SqlServer.Dacpacs.Master and Microsoft.SqlServer.Dacpacs.Msdb is a set of NuGet packages containing .dacpac files for Microsoft SQL Server system databases (master, msdb) with versions across SQL Server 2008 (100) through SQL Server 2022 (160).
Dacpacs.Azure.Master 📦 NuGet Microsoft.SqlServer.Dacpacs.Azure.Master is a NuGet package containing a .dacpac file for the Azure SQL Database master database.
Dacpacs.DbFabric 📦 NuGet Microsoft.SqlServer.Dacpacs.DbFabric is a NuGet package containing a .dacpac file for the SQL database in Fabric system objects.
Dacpacs.Synapse.Master 📦 NuGet Microsoft.SqlServer.Dacpacs.Synapse.Master is a NuGet package containing a .dacpac file for the Azure Synapse Analytics master database.
Dacpacs.SynapseServerless.Master 📦 NuGet Microsoft.SqlServer.Dacpacs.SynapseServerless.Master is a NuGet package containing a .dacpac file for the Azure Synapse Analytics serverless SQL pools master database.
ScriptDom 📦 NuGet<br/>🛠️ Code<br/>📘 API Docs Microsoft.SqlServer.TransactSql.ScriptDom is a NuGet package containing the Transact-SQL parser ScriptDOM. The source code is licensed MIT.
Microsoft.Build.Sql 📦 NuGet<br/>📗 Docs<br/>🛠️ Code Microsoft.Build.Sql is a .NET project SDK for SQL projects, compiling T-SQL code to a data-tier application package (dacpac).
Project Templates 📦 NuGet<br/>🛠️ Code Microsoft.Build.Sql.Templates is a set of .NET project templates for SQL projects.

Support

Open issues at DacFx GitHub

Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.
Version Downloads Last Updated
170.5.29-preview 19 6/17/2026
170.4.83 103,759 6/3/2026
170.4.80-preview 189 5/14/2026
170.4.77-preview 168 5/8/2026
170.4.71-preview 148 5/1/2026
170.4.63-preview 148 4/17/2026
170.4.43-preview 199 4/3/2026
170.4.34-preview 309 3/19/2026
170.4.20-preview 447 3/5/2026
170.3.93 660,227 2/10/2026
170.3.83-preview 713 1/23/2026
170.3.79-preview 160 1/20/2026
170.3.63-preview 1,113 12/19/2025
170.3.54-preview 168 12/12/2025
170.3.37-preview 974 11/14/2025
170.3.26-preview 5,942 10/31/2025
170.2.70 505,165 10/14/2025
170.2.68-preview 217 10/4/2025
170.2.55-preview 185 9/26/2025
170.2.41-preview 287 9/4/2025
Loading failed