Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

SRS XML reporting question

$
0
0

I am attempting to report on a sql table that has a xml data type, I want to be able to report on all the nodes within the Operands node, called "RuleExpression" the sql below only gives me the first instance "Windows/All_x64_Windows_7_Client". Does anyone know how to query them both and return them as comma delimated?

;WITH XMLNAMESPACES ( DEFAULT 'http://schemas.microsoft.com/SystemsCenterConfigurationManager/2009/06/14/Rules', 'http://schemas.microsoft.com/SystemCenterConfigurationManager/2009/AppMgmtDigest' as p1)
 
SELECT   app.DisplayName [Application Name],
   app.Manufacturer [Application Manufacturer],
   dt.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Description)[1]','nvarchar(MAX)')[Description],
   dt.SDMPackageDigest.value('(/p1:AppMgmtDigest/p1:DeploymentType/p1:Requirements/Rule/OperatingSystemExpression/Operands/RuleExpression/@RuleId)[1]','nvarchar(MAX)')[RuleDT]
  
          
FROM         dbo.fn_ListDeploymentTypeCIs(1033) AS dt INNER JOIN
                       dbo.fn_ListLatestApplicationCIs(1033) AS app ON dt.AppModelName = app.ModelName

WHERE     (dt.IsLatest = 1) and (app.DisplayName like @Appsearchstring or dt.DisplayName like @Dtsearchstring)
 Order by app.DisplayName, dt.PriorityInLatestApp


<?xml version="1.0"?>
-<AppMgmtDigest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/SystemCenterConfigurationManager/2009/AppMgmtDigest"> -<p1:DeploymentType Version="2" LogicalName="DeploymentType_e6b41230-d94c-4b72-861e-76fb1216f479" AuthoringScopeId="ScopeId_5F035480-7D2A-47C6-912C-963CBDD2332F" xmlns:p1="http://schemas.microsoft.com/SystemCenterConfigurationManager/2009/AppMgmtDigest"><p1:Title ResourceId="Res_462755002">Microsoft Visual C++ 2005 Redistributable (X64) 8.00.004</p1:Title> <p1:Description ResourceId="Res_1675524319"/> -<p1:Requirements> -<Rule xmlns="http://schemas.microsoft.com/SystemsCenterConfigurationManager/2009/06/14/Rules" NonCompliantWhenSettingIsNotFound="false" Severity="None" id="Rule_950703b6-54eb-4d95-9a28-1097647ec192"> -<Annotation> <DisplayName Text="Operating system One of {All Windows 7 (64-bit), All Windows Server 2008 R2 (64-bit)}"/> <Description Text=""/> </Annotation> -<OperatingSystemExpression> <Operator>OneOf</Operator> -<Operands> <RuleExpression RuleId="Windows/All_x64_Windows_7_Client"/> <RuleExpression RuleId="Windows/All_x64_Windows_Server_2008_R2"/></Operands> </OperatingSystemExpression> </Rule> </p1:Requirements> <p1:DeploymentTechnology>GLOBAL/MSIDeploymentTechnology</p1:DeploymentTechnology> <p1:Technology>MSI</p1:Technology> <p1:Hosting>Native</p1:Hosting> -<p1:Installer Technology="MSI"> -<p1:Contents> +<p1:Content Version="1" ContentId="Content_8fd7f34d-3a0e-4b39-823d-8fce71530ad3"> </p1:Contents> -<p1:DetectAction> <p1:Provider>MSI</p1:Provider> +<p1:Args> </p1:DetectAction> -<p1:InstallAction> <p1:Provider>MSI</p1:Provider> +<p1:Args>---- -<p1:Contents> <p1:Content Version="1" ContentId="Content_8fd7f34d-3a0e-4b39-823d-8fce71530ad3"/> </p1:Contents> </p1:InstallAction> -<p1:UninstallAction><p1:Provider>MSI</p1:Provider> +<p1:Args>---- -<p1:Contents> <p1:Content Version="1" ContentId="Content_8fd7f34d-3a0e-4b39-823d-8fce71530ad3"/> </p1:Contents> </p1:UninstallAction> -<p1:CustomData> <p1:DetectionMethod>ProductCode</p1:DetectionMethod><p1:ProductCode>{071c9b48-7c32-4621-a0ac-3f809523288f}</p1:ProductCode> <p1:ProductVersion>8.0.56336</p1:ProductVersion> <p1:InstallCommandLine>msiexec /i "vcredist.msi" /qb-</p1:InstallCommandLine> <p1:InstallContent Version="1" ContentId="Content_8fd7f34d-3a0e-4b39-823d-8fce71530ad3"/> <p1:UninstallCommandLine>msiexec /x {071c9b48-7c32-4621-a0ac-3f809523288f} /q</p1:UninstallCommandLine> -<p1:ExitCodes> <p1:ExitCode Class="Success" Code="0"/><p1:ExitCode Class="Success" Code="1707"/> <p1:ExitCode Class="SoftReboot" Code="3010"/> <p1:ExitCode Class="HardReboot" Code="1641"/> <p1:ExitCode Class="FastRetry" Code="1618"/> </p1:ExitCodes> </p1:CustomData> </p1:Installer></p1:DeploymentType> </AppMgmtDigest>


Viewing all articles
Browse latest Browse all 28687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>