Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Multi-Valued Paramters

Author  Topic 

rwlopez
Yak Posting Veteran

80 Posts

Posted - 2007-07-26 : 11:19:50
I am trying to pass a Multi-Valued Paramter from a report to a stored procedure, but I am not able to get it to work. The syntax for the parameter is Join(Parameters!SalesID.Value, ", "). It is being passed to the where clause WHERE SalesID IN (@SalesID), but it is not return any results. It does however work it does work if I select only one value from the mulit-valued parameter on the report. Can any one tell what the problem is here.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-07-26 : 11:51:52
You have to do the searching in the SP as dynamic SQL too.
See http://www.sommarskog.se/dynamic_sql.html



E 12°55'05.76"
N 56°04'39.42"
Go to Top of Page
   

- Advertisement -