Cross posting from Config Manager general forum:
I have written a basic information collection report with the following dataset/select statements:
SELECT v_GS_COMPUTER_SYSTEM.ResourceID ,v_GS_COMPUTER_SYSTEM.Name0 ,v_GS_OPERATING_SYSTEM.Caption0 ,v_GS_COMPUTER_SYSTEM.Model0 ,v_GS_COMPUTER_SYSTEM.Manufacturer0 ,v_GS_COMPUTER_SYSTEM.SystemType0 ,v_GS_SYSTEM_CONSOLE_USAGE.TopConsoleUser0 ,v_GS_NETWORK_ADAPTER.MACAddress0 ,v_RA_System_IPAddresses.IP_Addresses0 ,v_RA_System_SystemOUName.System_OU_Name0 ,v_GS_PC_BIOS.SerialNumber0 ,v_ClientMachines.SiteCode FROM v_GS_COMPUTER_SYSTEM LEFT OUTER JOIN v_GS_SYSTEM_CONSOLE_USAGE ON v_GS_COMPUTER_SYSTEM.ResourceID = v_GS_SYSTEM_CONSOLE_USAGE.ResourceID INNER JOIN v_GS_NETWORK_ADAPTER ON v_GS_COMPUTER_SYSTEM.ResourceID = v_GS_NETWORK_ADAPTER.ResourceID INNER JOIN v_RA_System_IPAddresses ON v_GS_COMPUTER_SYSTEM.ResourceID = v_RA_System_IPAddresses.ResourceID RIGHT OUTER JOIN v_RA_System_SystemOUName ON v_RA_System_SystemOUName.ResourceID = v_GS_COMPUTER_SYSTEM.ResourceID LEFT OUTER JOIN v_GS_OPERATING_SYSTEM ON v_GS_COMPUTER_SYSTEM.ResourceID = v_GS_OPERATING_SYSTEM.ResourceID LEFT OUTER JOIN v_GS_PC_BIOS ON v_GS_COMPUTER_SYSTEM.ResourceID = v_GS_PC_BIOS.ResourceID INNER JOIN v_ClientMachines ON v_GS_COMPUTER_SYSTEM.ResourceID = v_ClientMachines.ResourceID WHERE v_RA_System_IPAddresses.IP_Addresses0 NOT LIKE N'fe%' AND v_ClientMachines.SiteCode != N'SVR' GROUP BY v_GS_COMPUTER_SYSTEM.ResourceID ,v_GS_COMPUTER_SYSTEM.Name0 ,v_GS_OPERATING_SYSTEM.Caption0 ,v_GS_COMPUTER_SYSTEM.Model0 ,v_GS_COMPUTER_SYSTEM.Manufacturer0 ,v_GS_COMPUTER_SYSTEM.SystemType0 ,v_GS_SYSTEM_CONSOLE_USAGE.TopConsoleUser0 ,v_GS_NETWORK_ADAPTER.MACAddress0 ,v_RA_System_IPAddresses.IP_Addresses0 ,v_RA_System_SystemOUName.System_OU_Name0 ,v_GS_PC_BIOS.SerialNumber0 ,v_ClientMachines.SiteCode
I then added a parameter to select the collection, using the statement below:
select distinct c.CollectionID, c.Name from v_Collection c order by c.Name
The collection dataset was copied from this article: http://blogs.technet.com/b/gary_simmons_mcs/archive/2013/12/10/creating-a-custom-report-for-system-center-2012-r2-configuration-manager-part-3.aspx
When I choose a collection it returns the same result no matter which collection I select. What am I missing? If this should be posted I the SSRS forum, let me know.