Groups | Blog | Home
all groups > sql server reporting services > june 2005 >

sql server reporting services : Multi-select parameter in SQL Server Rptg Svcs 2005


Machelle
6/30/2005 2:25:01 PM
I am using a beta version of reporting services 2005.

I have created my report parameters as multi-select. However, I'm having
trouble having the query parameters accept the list that the report
parameters passes. (below) I tried replacing the = with in and between and
neither work. It doesn't like the comma between the multiple values. I
can't imagine that they've allowed multi-select report parameters without a
way to pass them cleanly to the query parameters.

Any help would be greatly appreciated. Thank you in advance for any help.

Machelle

Select * from candidate_info
where (recruiting_year in @p_Year) and
(candidate_type_display in @p_candidate_type) and
(degree_level in @p_degree) and
(owner_site_code in @p_site_owner) and
(offer_job_grade in @p_grade)
Machelle
7/1/2005 11:08:02 AM
I love it when it's a simple answer - thanks Wayne I really appreciate your
taking the time to answer my question.

[quoted text, click to view]
Wayne Snyder
7/1/2005 11:29:46 AM
Try putting parenthese around the parameter like you normally would if you
were providing a hardcoded list ie
Select * from candidate_info
[quoted text, click to view]


--
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC
(Please respond only to the newsgroup.)

I support the Professional Association for SQL Server ( PASS) and it's
community of SQL Professionals.
[quoted text, click to view]

AddThis Social Bookmark Button