Depended Package

by Garth 26. January 2012 01:32

Use this query to get the package name for any depended program.

See the TechNet forum post for full details.

SELECT     
  Pkg.Name AS 'Package Name', 
  ADV.ProgramName AS 'Program Name',
  ADV.AdvertisementName AS 'Advertisement Name', 
  Col.Name AS 'Collection Name', 
  CRQ.RuleName AS 'Security Group Name',
  Pgm.PackageID, 
  Pgm.ProgramName, 
  Pgm.DependentProgram,
  pkgsub.Name
  
FROM
  dbo.v_Advertisement Adv
  INNER JOIN dbo.v_Collection Col ON ADV.CollectionID = Col.CollectionID 
  INNER JOIN dbo.v_Package Pkg ON ADV.PackageID = Pkg.PackageID 
  INNER JOIN dbo.v_CollectionRuleQuery CRQ ON Col.CollectionID = CRQ.CollectionID 
  INNER JOIN dbo.v_Program Pgm ON Pkg.PackageID = Pgm.PackageID
  left outer Join (select substring(Pgm.DependentProgram,0,9) as Subpac, PackageID from dbo.v_Program  Pgm where Pgm.DependentProgram != '') sub ON sub.PackageID = Pkg.PackageID 
  left outer JOIN dbo.v_Package Pkgsub ON sub.Subpac = Pkgsub.PackageID 
--where 
--  ADV.AdvertisementName like 'Z7_%' 
ORDER BY 
  ADV.AdvertisementName

Tags: ,

System Management Server | System Center Configuration Manager | SCCM | SMS

Comments

7/11/2012 11:40:12 AM #

pingback

Pingback from eskonr.com

Eswar Raju Koneti's Blog  » Blog Archive   » SCCM report all applications with dependency programs

eskonr.com

Comments are closed

Powered by BlogEngine.NET 1.6.0.0


Enhansoft specializes in providing software solutions, custom reports, and consulting services for retrieving your IT asset inventory. 

This is done within the system management area focusing on Microsoft System Center Configuration Manager (SCCM) by extending its asset information and reporting capabilities.

Our software solutions found in the Enhanced Asset Management Suite – EAM: Warranty Information Reporting - WIR, Monitor Information Reporting - MIR & Enhanced Web Reporting - EWR, will quickly and accurately report on your:

  • PC (laptop, notebook, desktop & server) warranties
  • PC monitor information
  • Enable you to use over 100 different SQL Server Reporting Services (SSRS) ranging from hardware, software and dashboard categories, to keep track of and effectively display even more detailed information about your IT assets.

Enhansoft aims to make tracking the life cycle of each IT asset on the network as easy and efficient as possible.

Be more efficient.   Be more accurate.  Enhansoft.

 

Tag cloud