This package contains the master.dacpac for SQL Server 170.
$ dotnet add package Microsoft.SqlServer.Dacpacs.MasterMicrosoft.SqlServer.Dacpacs.Master contains a .dacpac file for the SQL Server system objects. Referencing this package in a SQL database project allows you to build and validate database projects with system object references that target SQL Server.
📗 SQL projects database DevOps documentation
The reference to this package can be added to your SQL database project (.sqlproj) as follows:
...
<ItemGroup>
<PackageReference Include="Microsoft.SqlServer.Dacpacs.Master" Version="170.0.3" />
</ItemGroup>
</Project>
An example of a SQL Server system object referenced in a SQL database project is shown below:
CREATE PROCEDURE dbo.usp_GetDatabaseProperties
@database_name SYSNAME
AS
BEGIN
SET NOCOUNT ON;
SELECT
[database_id],
[name],
[create_date],
[collation_name],
[containment],
[is_change_feed_enabled], -- 160 and above
[is_optimized_locking_on] -- 170 and above
FROM sys.databases
WHERE name = @database_name;
END;
| Package | Target platforms | Description |
|---|---|---|
| Microsoft.SqlServer.Dacpacs.Azure.Master | Azure SQL Database | Microsoft.SqlServer.Dacpacs.Azure.Master is a NuGet package containing a .dacpac file for the Azure SQL Database master database. |
| Microsoft.SqlServer.Dacpacs.DbFabric | SQL database in Fabric | Microsoft.SqlServer.Dacpacs.DbFabric is a NuGet package containing a .dacpac file for the SQL database in Fabric system objects. |
| Microsoft.SqlServer.Dacpacs.FabricDw | Data warehouse in Fabric | Microsoft.SqlServer.Dacpacs.FabricDw is a NuGet package containing a .dacpac file for the Data warehouse in Fabric system objects. |
| Microsoft.SqlServer.Dacpacs.Msdb | SQL Server | Microsoft.SqlServer.Dacpacs.Msdb is a set of NuGet packages containing .dacpac files for Microsoft SQL Server msdb databases. |
| Microsoft.SqlServer.Dacpacs.Synapse.Master | Azure Synapse Analytics | Microsoft.SqlServer.Dacpacs.Synapse.Master is a NuGet package containing a .dacpac file for the Azure Synapse Analytics master database. |
| Microsoft.SqlServer.Dacpacs.SynapseServerless.Master | Azure Synapse Analytics serverless pools | Microsoft.SqlServer.Dacpacs.SynapseServerless.Master is a NuGet package containing a .dacpac file for the Azure Synapse Analytics serverless SQL pools master database. |