Skip to content
SCCM Application Deployment Custom Report SQL Query | ConfigMgr

SCCM Application Deployment Custom Report SQL Query | ConfigMgr

Written By Anoop C Nair
Last Updated June 25, 2024
Posted In SCCM
SHARE

Let’s find out the SCCM Application Deployment Custom Report SQL Query with Collection. I have seen many questions in HTMDForum that we want the application-related reports, how to write a SQL query to write a report on app deployment, etc.

In this post, you will learn how to create a working Configuration Manager SQL query to find application status directly in the database. You can customize the query according to your needs.

The following is a sample query to help you understand the views required to get the ConfigMgr Application report working.

NOTE!Thanks to Karthik for sharing this query in the Forum.howtomanage.com thread – https://forum.howtomanagedevices.com/endpointmanager/configuration-manager/is-there-any-sql-query-for-finding-the-status-of-deployed-application-in-sccm/

Patch My PC
Index
SQL Query – Application Deployment Custom Report
Results – Application Deployment Custom Report
SCCM Application Deployment Custom Report SQL Query | ConfigMgr – Table 1

SQL QueryApplication Deployment Custom Report

Once you have initiated the client, push the installation method. The following query is one of many ways to get the application deployment status from ConfigMgr. You can track the status of the application deployment using it.

  • Open the SQL Management Studio.
  • Click on the New Query button.
  • Select the CM_MEM database from the drop-down menu.
    • MEM is the ConfigMgr site code.
  • Copy the following SQL query to find the application deployment report with collection details.
  • Click on the Execute button.
SCCM Application Deployment Custom Report SQL Query | ConfigMgr - Fig.1
SCCM Application Deployment Custom Report SQL Query | ConfigMgr – Fig.1

This report includes the following details

  • Deployment Types -> Available or Required
  • Deployment Time
  • Application Creation Time
  • Last Modified Time
  • Last, Modify by
  • Etc.
Select
Pac.PackageID as 'App_ID',
col.CollectionID as 'AppCollection_ID',
Vaa.ApplicationName as 'ApplicationName',
Ds.CollectionName as 'CollectionName',
CASE when col.CollectionType = 1 Then 'User' when col.CollectionType = 2 Then 'Device' Else 'Others' End as 'CollType',
CASE when Vaa.DesiredConfigType = 1 Then 'Install' when vaa.DesiredConfigType = 2 Then 'Uninstall’' Else 'Others' End as 'DeploymentType',
CASE when Ds.DeploymentIntent = 1 Then 'Required' when Ds.DeploymentIntent = 2 
Then 'Available' when Ds.DeploymentIntent = 3 Then 'Simulate' End as 'Purpose',
Ds.DeploymentTime as 'AvailableTime',
Ds.EnforcementDeadline as 'RequiredTime',
Vaa.CreationTime as 'CreatedOn',
Vaa.LastModificationTime as 'LastModifiedOn',
Vaa.LastModifiedBy as 'LastModifiedBy'
from v_DeploymentSummary Ds
left join v_ApplicationAssignment Vaa on Ds.AssignmentID = Vaa.AssignmentID
left join v_Package Pac on Vaa.ApplicationName = Pac.Name
left join v_collection col on Ds.CollectionName = col.Name
Where Ds.FeatureType = 1
order by Ds.DeploymentTime desc

Results – Application Deployment Custom Report

The SQL query for application deployment status is very helpful in troubleshooting SCCM app deployment issues. I have seen many scenarios where SCCM admins struggle to get an overview of the deployed and modified apps.

SCCM Application Deployment Custom Report SQL Query | ConfigMgr - Fig.2
SCCM Application Deployment Custom Report SQL Query | ConfigMgr – Fig.2
App_IDAppCollection_IDApplicationNameCollectionNameCollTypeDeploymentTypePurposeAvailableTimeRequiredTimeCreatedOnLastModifiedOnLastModifiedBy
MEM0001FMEM00014Microsoft EdgeHTMD CollectionDeviceInstallRequired41:00.041:00.041:49.041:49.0MEMCM\anoop
MEM0001EMEM00014ConfigMgr Admin ConsoleHTMD CollectionDeviceInstallAvailable01:00.0NULL01:47.001:47.0MEMCM\anoop
MEM00016SMSDM003Firefox 75.0All Desktop and Server ClientsDeviceInstallRequired36:00.036:00.036:07.007:05.0MEMCM\anoop
MEM00015SMSDM003Firefox v74All Desktop and Server ClientsDeviceInstallRequired02:00.002:00.002:20.002:20.0MEMCM\anoop
SCCM Application Deployment Custom Report SQL Query | ConfigMgr – Table 2

Resources

We are on WhatsApp. To get the latest step-by-step guides and news updates, Join our Channel. Click here –HTMD WhatsApp.

Author

Anoop C Nair is Microsoft MVP! He is a Device Management Admin with more than 20 years of experience (calculation done in 2021) in IT. He is a Blogger, Speaker, and Local User Group HTMD Community leader. His primary focus is Device Management technologies like SCCM 2012, Current Branch, and Intune. He writes about ConfigMgr, Windows 11, Windows 10, Azure AD, Microsoft Intune, Windows 365, AVD, etc.

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion · 10 comments

  1. Anoop, This provides when the deployment was created and the information of that said Application. Trying to figure out where\how to create a report where the end user can put in application and tell which devices have it?

  2. Thanks Anoop! I would have never found CollectionType, DesiredConfigType and DeploymentIntent due to the output types. Very Useful report! do you know of better schemas?

  3. Msg 208, Level 16, State 1, Line 1
    Invalid object name ‘v_DeploymentSummary’. i am getting this error

  4. Very Good Report Anoop Sir.

    Really Worth and use full.. if i get an custom report for individual software deployment wise means thats great..

  5. Hi Sir,
    How to find out the application deployment report in SCCM?
    Actually we need to deploy latest zoom version on previous installed servers. so we need to know the servers for installing latest version of zoom application.

    Kindly help on this.

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Intune

2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

AC Anoop C Nair 10 min read
Intune

2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

AC Anoop C Nair 8 min read
SCCM

ConfigMgr 2603 Introduces New Early Update Enrollment Process

Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

AC Anoop C Nair 3 min read