Solved

How do you setup a multivalue parameter in sql server reporting services 2000?

Posted on 2008-06-16
3
412 Views
Last Modified: 2013-11-26
Hi There,

I am using SQL Server Reporting Services 2000 and need to create a parameter that will allow a user to enter values separated by a comma (Ex, 12345,6789,54321....). How can this be accomplished? I am suing Visual Studio 2003 Query designer to create the reports.  i found this link which uses the strip function and a stored procedure but i don't have any stored procedures. Is there a way I use this function and then call it from my query? Please see my query and if possible enter the call to the function for me and let me know where in the report designer to copy and paste the function. I thought it would go under the CODE tab in Report Properties but I'm not sure.

I want the parameter to search on mh.mobile_id

http://bisqlserver.blogspot.com/2007/02/using-multi-value-parameters-in-stored.html

Thanks in advance for your help,
R
SELECT   mh.mobile_id, 
	mv.INMARSAT_ISN, 
	mh.SDATE AS Start_Date, 
	to_char(mh.EDATE, 'DD/MM/YYYY') AS End_Date, 
              SSM.FIRST_name || ' ' || ssm.last_name AS Sales_Manager, 
	mv.terminal_group_code, 
	tg.terminal_group_name
FROM      mobile_history mh, 
	CSS_TERM_GROUP_MOBILE_ID_MV mv, mobile m, 			CSC.CSCS_NLR_TERMINAL_GROUPS@DBLINK_CSS_CSSRO tg, 
              CSC.CSCS_SALES_SUPPORT_MANAGERS@DBLINK_CSS_CSSRO ssm
WHERE    SYSDATE BETWEEN sdate AND edate 
	AND inmarsat_imn = m.mobile_id 
	AND mh.mobile_id = m.mobile_id 
	AND mh.MOBILE_ID = mv.INMARSAT_IMN 
	 AND mv.TERMINAL_GROUP_CODE = tg.TERMINAL_GROUP_CODE 
	AND tg.sales_support_manager_id = ssm.support_manager_id
ORDER BY 5 DESC

Open in new window

0
Comment
Question by:Rhonda Carroll
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 21794113
0
 

Author Comment

by:Rhonda Carroll
ID: 21794524
Hi angellll,

My problem now is where in the visual studio designer to place this function. I have never created a function before so I need to know exactyl where to copy the function to within the designer.

Also, do I now remove my query and turn it into a stored procedure? I am not familiar with this, that is why I need someone to tell me. Clients are always requesting to be able to take advantage of this functionality but up to this point I haven't been able to get it to work. How can I implement this to work properly?

Thanks again,
R
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 21794553
>My problem now is where in the visual studio designer to place this function.
that is ms sql server function... so you just run the CREATE FUNCTION statement once against the sql server database, then it is available.

>Also, do I now remove my query and turn it into a stored procedure?
it's not a requirement, but has quite some advantages.

0

Featured Post

Create CentOS 7 Newton Packstack Running Keystone

A bug was filed against RDO for the installation of Keystone v3. This guide is designed to walk you through the configuration for using Keystone v3 with Packstack. You will accomplish this using various repos and the Answers file.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question