SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Report Builder Filter Issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Analyzer
Posting Yak Master

United Kingdom
101 Posts

Posted - 10/25/2013 :  11:46:58  Show Profile  Reply with Quote
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

India
52249 Posts

Posted - 10/26/2013 :  08:09:06  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000