Microsoft.SqlPackage 170.3.93

Prefix Reserved
dotnet tool install --global Microsoft.SqlPackage --version 170.3.93
                    
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.3.93
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Microsoft.SqlPackage&version=170.3.93
                    
nuke :add-package Microsoft.SqlPackage --version 170.3.93
                    

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
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 Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  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.3.93 21,360 2/10/2026
170.3.83-preview 393 1/23/2026
170.3.79-preview 111 1/20/2026
170.3.63-preview 471 12/19/2025
170.3.54-preview 134 12/12/2025
170.3.37-preview 553 11/14/2025
170.3.26-preview 191 10/31/2025
170.2.70 437,824 10/14/2025
170.2.68-preview 190 10/4/2025
170.2.55-preview 153 9/26/2025
170.2.41-preview 262 9/4/2025
170.2.37-preview 226 8/29/2025
170.2.32-preview 146 8/22/2025
170.2.25-preview 193 8/18/2025
170.2.15-preview 263 8/8/2025
170.1.61 287,137 7/30/2025
170.1.56-preview 297 7/18/2025
170.1.47-preview 170 6/27/2025
170.1.43-preview 158 6/20/2025
170.1.31-preview 226 6/6/2025
Loading failed