I have a R/S RDL where I want to use a multi-selection list on a parameter to allow the end user to select multiple divisions. I tested it initially with an SQL script dataset that looked something like this:
Worked slick as snot on a brass door knob.
Then, continuing the development environment, I move my select logic into a stored procedure something like this:
If I run the report with only one division selected all works well but when I select more than one, I get an error:
My best guess is that I need to change something on the SQL Procedure but as to what, I don't know.
Any input would be much appreciated.
Paul
Code:
Select * from some_table where Div in @DivList
Then, continuing the development environment, I move my select logic into a stored procedure something like this:
Code:
Create PROCEDURE [dbo].[GLWorkingTrialBalance]
@DivList VarChar(30),
:
:
Select * from Some_File where Div in (@DivList)
If I run the report with only one division selected all works well but when I select more than one, I get an error:
Code:
Query execution failed for data set 'My_Dataset'
Error converting data type varchar to numeric
My best guess is that I need to change something on the SQL Procedure but as to what, I don't know.
Any input would be much appreciated.
Paul