Multi Value Parameters from Stored Procedures in SSRS

Who is online?  0 guests and 1 members
Home  »  Blogs  »  MikeDavis  »  Multi Value Parameters from Stored Procedures in SSRS
 
0
/5
Avg: 0/5: (0 votes)

Comments (4)

lduvall
lduvall said:
I'm having trouble with this one. The stored proc is expecting a smallint rather than nvarchar. Where do I put my CAST statement? Do I put it in the original stored proc (the one I used to create the data set)? Or do I change the type in the dbo.split function itself? I have 2 multi-valued variables being called by the stored proc, so I would like to be able to use the dbo.split with any type of character set if possible.
10/3/2011
 · 
 
by
MikeDavis
MikeDavis said:
The multi select will send nvarchar to the stored proc. So the stored proc needs to be changed to accept an nvarchar. Then pass this variable into the split function. The returning item from the split statement is a table so no conversion is needed there.
10/3/2011
 · 
 
by
user545169
user545169 said:
Someone help, there is no way I can change my stored proc to accept a varchar array of comma separated values. I need to work outside of the stored proc and feed it single values. Is this impossible?
1/26/2012
 · 
 
by
MikeDavis
MikeDavis said:
Not with a multi value parameter, it will always pass a comma seperated string. You will need to parse this string in the stroed proc or use the function in this post.
1/26/2012
 · 
 
by
abcrandy1
abcrandy1 said:
Thanks alot for this Mike, it worked perfect but I was wondering if you could take it a step further. I'm working with 2 strings and would like to break it out based on the id. Hope that makes sense. EX1 is the dataset but I want to convert EX1 to a format similar to EX2. EX 1 ID StringVariable A 1,10,23,45 C 100, 200, 300 EX 2 ID Value A 1 A 10 A 23 A 45 C 100 C 200 C 300
3/21/2012
 · 
 
by
abcrandy1
abcrandy1 said:
The blog altered the format so it may be a little difficult to decipher. EX1 has 2 rows and 2 columns of data. The first column is just the ID. The second column is the string associated with teach id that needs to be split. EX2 has 7 rows of data and 2 columns. One row for each ID and it's associated value that was split.
3/21/2012
 · 
 
by
Blogs RSS Feed

MikeDavis's latest blog posts

Blogs RSS Feed

Latest community blog posts