all groups > sql server reporting services > july 2006 >
You're in the

sql server reporting services

group:

Select All Option in parameters


Select All Option in parameters Reddy
7/19/2006 7:26:01 PM
sql server reporting services: I know post of you know the answers to my question. Here is my question.

Select All option works fine in my report parameter but when I unselect
select all option and select multiple value it wont work.

example:

Select company,Comp_Id, state, city from company_info
where (Comp_Id in (@rp_comp_id) or @rp_comp_id='All'))

Note: this works fine if one is company is selected in report parameter or
select all is select but it wont work if I select multiple values
Re: Select All Option in parameters Bruce L-C [MVP]
7/20/2006 9:21:31 AM
Not sure what is wrong but in RS 2005 this should work. It is how I am doing
this. One question, is this statement in a stored procedure or is the SQL
statement directly within the report?


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

Re: Select All Option in parameters Reddy
7/20/2006 9:41:02 AM
Its a SQL statement within the report. When i select multiple values in
company parameters it throw error saying ',' is missing. Bruce any idea, is
my statement is wrong? or am I misssing any syntax?

[quoted text, click to view]
Re: Select All Option in parameters Reddy
7/20/2006 12:53:01 PM
Hi All,

IT works now. We need to change the code in where clause

Select company,Comp_Id, state, city from company_info
where (Comp_Id in (@rp_comp_id) or 'All' in( @rp_comp_id'))


[quoted text, click to view]
AddThis Social Bookmark Button