Microsoft.SqlServer.Dacpacs.Msdb
170.0.3
Prefix Reserved
dotnet add package Microsoft.SqlServer.Dacpacs.Msdb --version 170.0.3
NuGet\Install-Package Microsoft.SqlServer.Dacpacs.Msdb -Version 170.0.3
<PackageReference Include="Microsoft.SqlServer.Dacpacs.Msdb" Version="170.0.3" />
<PackageVersion Include="Microsoft.SqlServer.Dacpacs.Msdb" Version="170.0.3" />
<PackageReference Include="Microsoft.SqlServer.Dacpacs.Msdb" />
paket add Microsoft.SqlServer.Dacpacs.Msdb --version 170.0.3
#r "nuget: Microsoft.SqlServer.Dacpacs.Msdb, 170.0.3"
#:package Microsoft.SqlServer.Dacpacs.Msdb@170.0.3
#addin nuget:?package=Microsoft.SqlServer.Dacpacs.Msdb&version=170.0.3
#tool nuget:?package=Microsoft.SqlServer.Dacpacs.Msdb&version=170.0.3
Microsoft.SqlServer.Dacpacs.Msdb contains a .dacpac file for the SQL Server msdb objects. Referencing this package in a SQL database project allows you to build and validate database projects with msdb object references that target SQL Server.
📗 SQL projects database DevOps documentation
Usage
The reference to this package can be added to your SQL database project (.sqlproj) as follows:
...
<ItemGroup>
<PackageReference Include="Microsoft.SqlServer.Dacpacs.Msdb" Version="170.0.3" />
</ItemGroup>
</Project>
An example of a SQL Server msdb objects referenced in a SQL database project is shown below:
CREATE VIEW dbo.v_JobLastRunStatus
AS
WITH JobHistory AS (
SELECT
j.job_id,
j.name AS job_name,
h.run_date,
h.run_time,
h.run_status,
h.message,
ROW_NUMBER() OVER (
PARTITION BY j.job_id
ORDER BY
h.run_date DESC,
h.run_time DESC
) AS rn
FROM msdb.dbo.sysjobs j
JOIN msdb.dbo.sysjobhistory h
ON j.job_id = h.job_id
WHERE h.step_id = 0
)
SELECT
job_name,
run_status,
CASE run_status
WHEN 0 THEN 'Failed'
WHEN 1 THEN 'Succeeded'
WHEN 2 THEN 'Retry'
WHEN 3 THEN 'Canceled'
ELSE 'Unknown'
END AS run_status_desc,
run_date,
run_time,
message
FROM JobHistory
WHERE rn = 1;
Related packages
| 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.Master | SQL Server | Microsoft.SqlServer.Dacpacs.Master is a set of NuGet packages containing .dacpac files for Microsoft SQL Server master 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. |
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 170.0.3 | 38 | 6/3/2026 |
| 170.0.2 | 2,420 | 2/10/2026 |
| 170.0.1 | 1,345 | 7/30/2025 |
| 170.0.0 | 1,330 | 4/15/2025 |
| 160.1.4 | 28 | 6/3/2026 |
| 160.1.3 | 2,852 | 7/30/2025 |
| 160.1.2 | 8,232 | 9/20/2024 |
| 160.1.1 | 830 | 3/1/2024 |
| 160.1.0 | 1,037 | 10/19/2023 |
| 160.0.0 | 28,098 | 5/12/2023 |
| 150.0.1 | 3,530 | 7/30/2025 |
| 150.0.0 | 28,967 | 5/12/2023 |
| 140.0.4 | 530 | 7/30/2025 |
| 140.0.3 | 560 | 4/15/2025 |
| 140.0.1 | 1,174 | 3/1/2024 |
| 130.1.2 | 483 | 7/30/2025 |
| 130.1.1 | 1,039 | 3/1/2024 |
| 130.1.0 | 515 | 2/27/2024 |
| 120.0.2 | 486 | 7/30/2025 |
| 120.0.1 | 566 | 3/1/2024 |