Wrox Programmer Forums
BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7
This is the forum to discuss the Wrox book Professional SQL ServerReporting Services by Paul Turley, Todd Bryant, James Counihan, George McKee, Dave DuVarney; ISBN: 9780764568787
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 14th, 2005, 04:46 PM
Registered User
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default multivalue paramaters are not supported

has anyone come up with a backend fix to the fact that multivalue paramaters are not supported?

I need to be able to filter my dataregion with MULTIPLE VALUES otherwise the RS are useless...


Old February 17th, 2005, 03:13 PM
Authorized User
Join Date: Aug 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to barmanvarn

I'm not sure if this is what your asking, but I came up with a solution that I think works VERY well.

Example Query for region parameter:
select '-ALL-' as label, '%' as value
select region, region from table
order by 1

So, now your drop-down allows you to choose all, region1, region2, etc.

Next, in you main query do something like this:

select * from region table where region like @regionparameter.

This works perfectly for the report and for dependent parameters.

Hope this helps.
Old February 20th, 2005, 02:30 AM
Authorized User
Join Date: Oct 2003
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts

Another solution that I used and works great:
Create a function in sql server:

CREATE function dbo.CSVTable(@Str varchar(7000))
returns @t table (numberval int, stringval varchar(100), DateVal datetime)

declare @i int;
declare @c varchar(100);

set @Str = @Str + ','
set @i = 1;
set @c = '';

while @i <= len(@Str)
if substring(@Str,@i,1) = ','
insert into @t
values (CASE WHEN isnumeric(@c)=1 THEN @c else Null END,
CASE WHEN isdate(@c)=1 then @c else Null END)
set @c = ''
set @c = @c + substring(@Str,@i,1)
set @i = @i +1

Then in the sp use that function as follows:

(@Paramregion IS NULL OR t.region in (Select stringval from dbo.CSVTABLE (@Paramregion)))

Similar Threads
Thread Thread Starter Forum Replies Last Post
Element 'register' is not supported sstuber BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 January 21st, 2010 11:23 AM
Multivalue controls GS C# 2005 1 May 16th, 2007 06:56 AM
Multivalue parameter Reporting Services 2005 aldwinenriquez Reporting Services 2 January 11th, 2007 03:41 PM
Automatically add querystring paramaters to URL trancehead ASP.NET 2.0 Professional 0 July 24th, 2006 03:03 AM
recordcount attribute supported alyeng2000 SQL Server 2000 0 November 18th, 2003 12:02 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.