SQL Report - Software count for specific hostnames

Hi all,
I'm currently using the below query to get the count of all software in Add/Remove Programs for a specific collection:
Declare @CollID char(8)
Set @CollID = 'XXX00001'
SELECT DisplayName0, Count(*) AS 'Count', Publisher0, Version0, @CollID as CollectionID
FROM v_Add_Remove_Programs arp
JOIN v_FullCollectionMembership fcm on arp.ResourceID=fcm.ResourceID
WHERE fcm.CollectionID = @CollID and
GROUP BY DisplayName0, Publisher0, Version0
ORDER BY Publisher0, Version0
Now, what I would like to do is to specify the All Systems collection ID (not a problem) but add a couple of extra condition:
I want to run the query only WHERE the hostnames start with SITE1 or SITE2.
How can I modify the above to achieve the results I'm expecting? I'm getting stuck here and there :(
Thanks a lot

Thanks Torsten, you put me on the right direction.
If somebody's interested, this is the query I'm running now:
Declare @CollID char(8)
Set @CollID = 'XXX00001'
SELECT DisplayName0, Count(*) AS 'Count', Publisher0, Version0, @CollID as CollectionID
FROM v_Add_Remove_Programs arp
JOIN v_FullCollectionMembership fcm on arp.ResourceID=fcm.ResourceID
JOIN v_R_System_Valid rsv on arp.ResourceID=rsv.ResourceID
WHERE fcm.CollectionID = @CollID and rsv.Netbios_Name0 LIKE '%SITECODE1%' GROUP BY DisplayName0, Publisher0, Version0
ORDER BY Publisher0, Version0

Similar Messages

  • Pixel counts for specific RGB values

    Can Photoshop CS4 find pixel counts in an
    image for specific RGB values?  Where would
    you input these RGB values and would you see the pixels highlighted and totaled?

    Hi Zeno:
    Thank you very much for your response!
    Your directions work very well for a single image.  I have an entire series of images and was wondering if I could just enter a specific set RGB values some where and see a total pixel count for each one of them.
    When I go to foreground color and enter the RGB values there and then set the color range to zero and press OK, I get a Warning: No pixels were selected message.
    Any additional advice that you have would be much appreciated.
    Thanks, Bretzfrog

  • ALV-Report modify/update for specific Biz Area

    Hi, can any one help for below requirement.
    Requirement: In My ALV report DESIGNATION is one of the field. In this field Employee position( like manager, vice president) is displyaing. Now my requirement is instead of position I have to Display Employee sub group Description(PTEXT). This report is used by different pay role areas, But i have to chage this for only one specific payroll area. Remaining payroll ares will use same one without any changes. Pls can any one help out this one.
    Thanks in Advance.

    Why cant you use such a simple condition like this in your program?
    if itab-payarea = 'AAA'.   -> your specific payroll area
    itab-designation = subgroup text.
    else.
    itab-designation = position.
    endif.

  • SCOM Powershell get alert count for specific groups

    Hello good people,
    im looking for a powershell script (to use in powershell widget):
    ive got 3 groups which generate alerts, for example group1 group2 group3
    now i need to get all new alerts and closed alerts per group
    groupid  new  closed
    group1    12     100
    group2    10       50
    group3    3         6
    thx for your help in advanced

    you may consider using the following powershell cmdlet to count number of closed alert
    $gp1closed=get-scommonitoringobject|where-object{$_.displayname -eq 'group1'} | get-scomalert | whereobject$_.resolutionstate -eq '255'} |measure
    $gp1open=get-scommonitoringobject|where-object{$_.displayname -eq 'group1'} | get-scomalert | whereobject$_.resolutionstate -eq '0'} |measure
    $gp2closed=get-scommonitoringobject|where-object{$_.displayname -eq 'group2'} | get-scomalert | whereobject$_.resolutionstate -eq '255'} |measure
    $gp2open=get-scommonitoringobject|where-object{$_.displayname -eq 'group2'} | get-scomalert | whereobject$_.resolutionstate -eq '0'} |measure
    $gp3closed=get-scommonitoringobject|where-object{$_.displayname -eq 'group3'} | get-scomalert | whereobject$_.resolutionstate -eq '255'} |measure
    $gp3open=get-scommonitoringobject|where-object{$_.displayname -eq 'group3'} | get-scomalert | whereobject$_.resolutionstate -eq '0'} |measure
    'Group1' + '  '+ $gp1open + '  '+ $gp1closed
    'Group2' + '  '+ $gp2open + '  '+ $gp2closed
    'Group3' + '  '+ $gp3open + '  '+ $gp3closed
    Roger

  • "Go to Report" action fails for specific user.

    Hi all,
    I have Sharepoint 2010 in Integrated Mode with Reporting Services 2008 R2 running in ReportViewer webparts.
    In many reports I have a "Go to Report" action that work fine.
    Until now all of our users were able to use the "Go to Report" action. However, now for the first time there is a user that is not taken to the target report, but instead is taken to the site default page (the url that is also displayed when I
    mouse-over the link). I have tested and in my browser (same version) it works ok.
    Is there a setting in IE9 that can prevent or interrupt the Go to Report action?
    Many thanks. 
    Jacco Bloemendaal

    Hi Jacco,
    Please check if this issue also persist in other browser. It is may be due to compatibility issue. Please refer to the following steps to set browser open all intranet sites with Compatibility View mode automatically.
    1. Launch the IE 9, and press Alt+T to select the Tools.
    2. Click Compatibility View settings.
    3. Check the “Display intranet sites in Compatibility View” option, and click Close.
    There is a similar issue, you can refer to it.
    https://connect.microsoft.com/SQLServer/feedback/details/671138/ssrs-2008-r2-sharepoint-2010-ie9-no-export-submenus
    Hope this helps.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Total pixel count for specific shades

    I am photographing fixed points along an artificial stream bed and want to document algae growth in it over time.  There may be up to 7 different shades of green (types of algae) in a given photograph.
    Can Photoshop CS4 separate these shades and give you a total pixel count of each shade? 
    I was told by techical support that if you select an area with a tool that the histogram can give you a pixel count (along with the RBG values) for that given area.  Is there a way to click on a particular shade point and have PS computate the total pixel count of that shade in the entire photograph.
    The magic wand tool does not appear to be a reliable tool for this purpose.

    Hi Paulo:
    Thanks for your response!  When I go to Select/Color Range and set the bar to low fuzziness, I get an eye dropper.  When I click the eye dropper on the photograph, nothing happens in the histogram to indicate a pixel count.  I am missing a step?
    Thanks, Bretzfrog

  • Installed SQL Reporting Services 2012 on SharePoint 2013 Server. SQL Reporting Service not available In the list of runnning services or new service applications

    Hi I'm trying to setup SQL reporting services in a SharePoint 2013 farm consisting of:
    4 WFE's
    4 App Servers (NLB Central Admin x 4 servers)
    4 App Severs for SSRS (Light limited SharePoint services running)
    I've installed SSRS 2012 SP1 by following the guide (http://msdn.microsoft.com/en-us/library/gg492276.aspx) on one of the SSRS SharePoint 2013 servers and ensuring Reporting Services - SharePoint and Reporting Services Add-in for SharePoint Products is selected.
    All completed without errors and I have even upgraded to SP2 for troubleshooting but no joy.
    I've then gone into SharePoint Central Admin and I cannot see SQL Reporting Service available In the list of runnning services on the server I have just installed SSRS on and going to manage service applications I cannot see in the new dropdown menu SQL
    Reporting Services.
    I have ran the following commands in the SHarePoint management shell:
    Install-SPRSService and Install-SPRSSeviceProxy
    and
    get-spserviceinstance -all |where {$_.TypeName -like "SQL Server Reporting*"} | Start-SPServiceInstance
    The reply was that the service was already online on the server.
    So in powershell all seems ok but it does not appear in central administration.
    I have also moved Central Administration to the SSRS SharePoint server too.
    Any other suggestions? Here is the same problem but in SP2010 (http://social.technet.microsoft.com/Forums/office/en-US/6a21cc05-1f9b-49ad-a9bb-44aa5b3ce312/action?threadDisplayName=after-installing-sql-reporting-services-service-for-sharepoint-2012-service-is-not-in-the-list-of)
    In my lab environment of a 4 server SP2013 farm it worked immediately when i installed it on the app server (CA host) so I dont think it is my install strategy.
    I guess my next attempt is to install SSRS on an app server with central administration hosted.
    Thanks

    I had the same issue on 2 different environments.
    I had 2 application servers. One had Central Administration. I installed SSRS on the other one and it never appeared in the Service Applications in SharePoint.
    When I also provisioned Central Administration on the other application server and went to the service applications using Central Admin on that server, the SSRS service application was there.
    Since then I always install SSRS on the server which hosts Central Admin. No issues then.

  • SCCM Query for summary of installed software in a specific collection

    Hi,
    I have a SCCM 2012 SP1 environment, I am given a task to collect Summary of installed software in a specific collection. There is a built in report under Reports > Asset Intelligence > Software 01A - Summary of installed software in a specific collection.
    But this report is throwing an XML error. I need the query to collect the installed software in a specific collection .Can anyone tell me what the query is ?
    Also using the report builder is there a way to mirror the built in report so that I can generate the same report as Software 1A - Summary of installed software in a specific collection.
    Regards, h9ck3r.

    Hi
    In order to create a "copy" of the Summary of installed software in a specific Collection you would have to do the following:
    Browse to http://ServerName/Reports/ - where ServerName is the name of the server where you installed SQL Reporting Services
    Click the ConfigMgr_SiteCode folder
    Select New Folder and in the New Folder window type the of name of the new folder i.e Custom Report (or whatever you like), then click
    OK
    Click the Asset Intelligence folder
    Find the Software 01A - Summary of installed software in a specific Collection report
    and click the drop-Down arrow next to the report and select Edit in Report Builder. Wait for Report Builder to open the report
    In Report Builder, click the System Center Orb
    (top left corner) and select Save As
    In the Save As Report dialog box, change the name of the report to something else and browse to the folder you created earlier and then click
    Save
    In order to get data into the Software 01A - Summary of installed software in a specific Collection report, you must have
    SMS_InstalledSoftware class enabled in Asset Intelligence. You write that you get a XML error when running the report. Verify that the required class is enabled in
    Asset Intellingence and whether you are able to run any of the other Asset Intelligence reports or any´reports as all for that matter.

  • Using Azure internal load balancer (ILB) for Sql Reporting Services

    I am attempting to implement a scale-out SSRS deployment using the Azure ILB feature. I have created 2 Sql Reporting servers using the azure images and have created a ILB endpoint on both servers.  I am then attempting to access the servers via the
    ILB from my .Net web application.  I can access the report server from my browser and am prompted for credentials using forms authentication.  there is no issue accessing the reports from a browser however my web application cannot access the reports
    and returns a 500 error.  I have a hunch this is due to an authentication issue due to invalid kerberos proxy authentication.
    Does anyone have any information regarding the possible authentication mechanisms that are supported using Azure ILB?  

    Thanks for the response Swallow0417, but as I stated I already had configured this to work in a browser.  I should have mentioned that I already had set the machine key and altered the rsreportserver.config file as mentioned in
    https://msdn.microsoft.com/en-us/library/cc281307.aspx.
    It turns out this was due to the extended data validation that was introduced in SQL 2014. 
    This page led me to alter rsreportserver.config so that:
    <RSWindowsExtendedProtectionLevel>Off</RSWindowsExtendedProtectionLevel>
    <RSWindowsExtendedProtectionScenario>Any</RSWindowsExtendedProtectionScenario>
    After restarting the report server service my application now can make the requests for the reports successfully.  I'll provide the other steps I took to hopefully help someone else in the future:
    1. Create 2 or more SQL servers in an Azure availability group on the same service in a Reports server scale out deployment.  The SSRS Service account must be a domain account or it will not work
    2. Create an Azure ILB using powershell and add the endpoints on your http(s) ports on the server in step 1. I also set the endpoint IdleTimeoutInMinutes to 30 on both endpoints as it seemed like there was some possible timeout issues. the endpoint MUST
    also have DirectServerReturn Set to $true 
    3. disable the loopbackcheck see method 2 here
    http://support.microsoft.com/kb/896861
    create a DWORD registry key value 1,
    DisableLoopbackCheck,
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
    4. Configure View state validation by setting an identical machine key on all servers behind the azure ILB
    5. Create a Host record in your AD DNS for the Azure ILB IP Address. 
    6. configure hostname
    and URLRoot in rsreportserver.config - see
    https://msdn.microsoft.com/en-us/library/cc281307.aspx
    Setting the hostname tag breaks the report manager url. It is only
    required to set the URLRoot tag. I do not think it is required in this configurtaion only for Windows
    NLB
    6. Configure the authentication method in rsreportserver.conig
      <RSWindowsExtendedProtectionLevel>Off</RSWindowsExtendedProtectionLevel>
      <RSWindowsExtendedProtectionScenario>Any</RSWindowsExtendedProtectionScenario>

  • Software Metering Report - Install base for all metered software programs - Returns 0

    Hi All
    I have an issue with one of the software metering reports, Install base for all metered software programs. when run it returns that the metered software is installed on 0 computers.
    All usage reports seem to work correctly and I can see usage data for the monitored applications. But anything related to install base such as the one listed above and "Computers that have a metered program installed but have not run the program since
    a specific date" either return 0 or are blank.
    Any help will be greatly appreciated

    Hi All
    finally found a fix to the problem. It was very closely related to what Gareth  had mentioned regarding Asset Intelligence. The actual method of detecting if a program is installed is done through Software Inventory
    Under Custom Client Settings i had enabled Software Inventory on client but never setup any rules to gather data. So i created a new rule for all *.exe files and around an hour later the report started to show up clients.
    This blog post also describes the method of setting up software inventory correctly 
    Thanks to all the help and hopefully this will aid anyone else encountering similar problems

  • Fetch-Xml based report (to count User Access in the last 6 months ) for Microsoft Dynamics CRM Online

    Hi,
    I have created a User Access report for CRM on-premise using SQl query in the following format. One row corresponds to one user in organization. Currently, I am using Microsoft Dynamics CRM Online trial version and have two users in my organization.
    I want to the same report for CRM Online environment. Only Fetch-Xml based custom reports are supported by CRM online environment hence this SQL query cannot be used.
    I have already written fetch-xml query to retrieve user access records ("audit" entity records) in "last-x-months" (where x = 1,2,3,4,5,6) as below.
    I am able to retrieve the records with "last-x-months" condition at a time, for example, the last-2-months  in my fetch-xml query only.
    For, example, when I retrieve the records in the last-2-months, it also includes the records in the last month. I want to count the records in the 2nd month only that is the difference between these two. The difference will be my 2nd column.
    Similarly, I want the other columns.  
    For the case in the above example, I have created the two separate datasets to get the record-count for the last month and last-2-months. But, I am not able to use the two datasets in the same table in my report and hence not able to calculate the difference.
    Is there any way to solve this problem?

    Hi,
    I have modified my Fetch-XML query to retrieve all the required User Access records and removed aggregation and counting and grouping from the query as well. Did grouping and counting in SSRS. Now the report works fine as shown in the above picture.

  • FBL3N to BW report for specific GL's

    Dear BW Experts,
    I want to create report in BW for FBL3N for specific GL's, for open items.
    I am done with development.
    Report on standard DSO 0FIGL_O02 (0FI_GL_4)...
    Simply GL in rows, with filter for open status.
    Issue: Balance is not matching from ECC for one GL, because of one document,
    which is closed in ECC but in DSO its still open (data is upto date in BW).
    Thanks
    Arun Purohit

    I did re-load but without luck.....
    that docment is there in BSAS(closed docs table) table not in BSIS (open docs table)...still ds 0FI_GL_4 shows that item still open....

  • Reporting Services 2012 for SharePoint and SQL Server Agent "Subscriptions and Alerts"

    After installing Reporting Services for SharePoint (Denali) in my test farm, I'm trying to configure the "SQL Server Agent" access for Reporting Services.  From Central Admin I'm going to the Reporting Service applicaiton configuration screen and selecting
    "Provision Subscriptions and Alerts".  I've tried both options on this screen.  I've manually executed the "download sql script" in SQL Server, as well as entering a user with SQL sys admin rights on the SQL server into the login fields on the screen. 
    The role and permissions have been created for the application pool service account, but Reporting Services is still trying to connect with the annonymous login because I'm getting the following alert each time I open the "Provision Subscriptions and Alerts"
    screen:
    Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
    The "status" on the screen still shows "SQL Server Agent State cannot be determined".  Has anyone else seen this? 
    Thanks!!

    Thanks for your reply!
    1) Looks like the new Reporting Services does not run as a Windows Service so it's not listed in the "Configure Service Accounts" pulldown.  As a result, I don't see how to set the service account.  It's only assigned to an application pool. 
    I installed it into an existing application pool and that application pool "is" in the list and has a domain service account already assigned.
    2) Which users need to be in here in order to configure the "Provision Subscriptions and Alerts" screen?  I already have the farm admin account which is the account I use when running Central Admin.
    3) As mentioned in #1, I've installed Reporting Services into an existing application pool with other service apps.
    4) This link is for Reporting Services 2008 R2 which is very different install process.  But I did follow the SQL Server Reporting Services 2012 RC0 installation instructions and the Reporting Services is functioning correctly with no errors. 
    I'm just not able to configure the sceduling the alerting with interfaces with the SQL Server Agent.
    Thanks!

  • Creating tabs for a single SQL report type region

    I would like to find a way to use tabs in a single SQL report type region. The problem I have is that there are too many columns to be displayed so the report looks very cluttered. I would like to find a way to assign say columns 1 - 5 to tab 1, 6-10 to tab 2 etc so the user can find the columns they need by simply clicking on the various tabs without having to execute the query again.
    I have looked at JQuery tabs but that seems to only be applicable to more or less unrelated regions. I tried to create different regions using the same query with different columns and that kind of works, but the regions don't stay in sync if say the user change the order for column 2 in tab 1, when they click on tab 2 everything displays in a different order.
    Another wrinkle is that this is an updatable report so some of the columns are updatable.
    I also looked at the hide / display column solution which is described in a few threads and that may also sort of work, but it is also not quite what I am looking for.
    Any help is greatly appreciated

    Does anybody know if this can be accomplished using APEX? What I am really looking for is very similar to an old fashioned client / server screen developed using say Oracle Forms. Consider an order line screen where say columns line number, SKU and SKU description is to the left of the tabs so these columns are visible no matter which tab is active. Then the first tab has say pricing information including UOM, quantity, list price, unit selling price, price list. The next tab has say customer information including customer number, name, bill to and ship to addresses. the next tab has say shipping information with say the warehouse, shipping instructions and shipping method.

  • How to apply Software Restriction policy for specific user in local group policy object ?

    I am working on implementing user based software restriction policy programmatically for local group policy object.
    If i create a policy through Domain Controller,i do have option for software restriction policy in user configuration but in local group policy editor i don't have option for that.
    When i look for the changes made by policy applied from Domain Controller in registry, they modifies registry values for specific users on path HKEY_USERS\(SID of User)\Softwares\Policies\Microsoft\Windows\Safer\Codeidentifiers
    They also have registry.pol stored in SYSvol folder in Domain Controller. When i make the same changes in registry to block any other application, application is getting blocked.
    I achieved what i wanted but is it right to modify registry values ?  
    PS:- I am using Igrouppolicyobject API

    I achieved what I wanted but is it right to modify registry values ?
    You also can modify a registry programmatically based policy. Check this:
    http://blogs.msdn.com/b/dsadsi/archive/2009/07/23/working-with-group-policy-objects-programmatically-simple-c-example-illustrating-how-to-modify-a-registry-based-policy.aspx
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for