Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Report Builder Filter Issue

Author  Topic 

Analyzer
Posting Yak Master

115 Posts

Posted - 2013-10-25 : 11:46:58
Hi, Got a bunch sql inventory reports I wish to filter within Report Builder. Managed to set up parameter using the CMS table list for server names, my report when executed has a filter button which drills down to all server names in CMS list. Only problem the report brings back every server name into the report and not the single server name I choose from the drop list.

Any ideas where I'm going wrong.On the report dataset do I need to add a @variable for the server name in select. Any ideas?

SELECT server_id, server_group_id, name, server_name, description, server_type
FROM sysmanagement_shared_registered_servers_internal

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-10-26 : 08:09:06
yes...you need to add filter to query like this

SELECT server_id, server_group_id, name, server_name, description, server_type
FROM sysmanagement_shared_registered_servers_internal
WHERE [server_name] = @Server

and link this parameter @Server to parameter created in report

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -